@iress-oss/ids-mcp-server 5.14.2 → 5.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated/docs/components_components-alert-docs.md +492 -0
- package/generated/docs/components_components-autocomplete-docs.md +3485 -0
- package/generated/docs/{components-autocomplete-recipes-docs.md → components_components-autocomplete-recipes-docs.md} +32 -14
- package/generated/docs/{components-badge-docs.md → components_components-badge-docs.md} +222 -30
- package/generated/docs/components_components-button-docs.md +2078 -0
- package/generated/docs/components_components-button-recipes-docs.md +37 -0
- package/generated/docs/components_components-buttongroup-docs.md +1045 -0
- package/generated/docs/components_components-card-docs.md +2276 -0
- package/generated/docs/{components-card-recipes-docs.md → components_components-card-recipes-docs.md} +131 -14
- package/generated/docs/components_components-checkbox-docs.md +1054 -0
- package/generated/docs/{components-checkboxgroup-docs.md → components_components-checkboxgroup-docs.md} +1000 -81
- package/generated/docs/{components-checkboxgroup-recipes-docs.md → components_components-checkboxgroup-recipes-docs.md} +101 -11
- package/generated/docs/{components-col-docs.md → components_components-col-docs.md} +331 -58
- package/generated/docs/components_components-combobox-docs.md +3767 -0
- package/generated/docs/{components-container-docs.md → components_components-container-docs.md} +61 -24
- package/generated/docs/{components-divider-docs.md → components_components-divider-docs.md} +83 -24
- package/generated/docs/{components-expander-docs.md → components_components-expander-docs.md} +264 -33
- package/generated/docs/{components-field-docs.md → components_components-field-docs.md} +814 -120
- package/generated/docs/components_components-filter-docs.md +4080 -0
- package/generated/docs/{components-form-docs.md → components_components-form-docs.md} +1488 -358
- package/generated/docs/{components-form-recipes-docs.md → components_components-form-recipes-docs.md} +174 -64
- package/generated/docs/components_components-hide-docs.md +293 -0
- package/generated/docs/components_components-icon-docs.md +1337 -0
- package/generated/docs/{components-inline-docs.md → components_components-inline-docs.md} +462 -42
- package/generated/docs/components_components-input-docs.md +1468 -0
- package/generated/docs/components_components-input-recipes-docs.md +367 -0
- package/generated/docs/components_components-inputcurrency-docs.md +432 -0
- package/generated/docs/{components-inputcurrency-recipes-docs.md → components_components-inputcurrency-recipes-docs.md} +110 -17
- package/generated/docs/components_components-label-docs.md +323 -0
- package/generated/docs/components_components-menu-docs.md +2345 -0
- package/generated/docs/components_components-menu-menuitem-docs.md +633 -0
- package/generated/docs/{components-modal-docs.md → components_components-modal-docs.md} +1625 -232
- package/generated/docs/components_components-navbar-docs.md +1847 -0
- package/generated/docs/{components-navbar-recipes-docs.md → components_components-navbar-recipes-docs.md} +697 -39
- package/generated/docs/{components-panel-docs.md → components_components-panel-docs.md} +754 -57
- package/generated/docs/components_components-placeholder-docs.md +92 -0
- package/generated/docs/components_components-popover-docs.md +1641 -0
- package/generated/docs/{components-popover-recipes-docs.md → components_components-popover-recipes-docs.md} +347 -17
- package/generated/docs/components_components-progress-docs.md +115 -0
- package/generated/docs/components_components-provider-docs.md +114 -0
- package/generated/docs/components_components-radio-docs.md +491 -0
- package/generated/docs/{components-radiogroup-docs.md → components_components-radiogroup-docs.md} +943 -75
- package/generated/docs/components_components-readonly-docs.md +263 -0
- package/generated/docs/components_components-richselect-docs.md +6497 -0
- package/generated/docs/{components-row-docs.md → components_components-row-docs.md} +353 -43
- package/generated/docs/{components-select-docs.md → components_components-select-docs.md} +719 -61
- package/generated/docs/components_components-skeleton-docs.md +480 -0
- package/generated/docs/{components-skeleton-recipes-docs.md → components_components-skeleton-recipes-docs.md} +50 -10
- package/generated/docs/{components-skiplink-docs.md → components_components-skiplink-docs.md} +53 -14
- package/generated/docs/components_components-slideout-docs.md +2262 -0
- package/generated/docs/components_components-slider-docs.md +1276 -0
- package/generated/docs/components_components-spinner-docs.md +82 -0
- package/generated/docs/{components-stack-docs.md → components_components-stack-docs.md} +223 -40
- package/generated/docs/components_components-table-docs.md +3651 -0
- package/generated/docs/components_components-tabset-docs.md +772 -0
- package/generated/docs/components_components-tabset-tab-docs.md +262 -0
- package/generated/docs/components_components-tag-docs.md +259 -0
- package/generated/docs/{components-text-docs.md → components_components-text-docs.md} +491 -51
- package/generated/docs/{components-toaster-docs.md → components_components-toaster-docs.md} +224 -71
- package/generated/docs/components_components-toaster-toast-docs.md +634 -0
- package/generated/docs/components_components-toggle-docs.md +461 -0
- package/generated/docs/{components-tooltip-docs.md → components_components-tooltip-docs.md} +286 -41
- package/generated/docs/{components-validationmessage-docs.md → components_components-validationmessage-docs.md} +230 -61
- package/generated/docs/components_contact-us-docs.md +12 -0
- package/generated/docs/{foundations-accessibility-docs.md → components_foundations-accessibility-docs.md} +11 -21
- package/generated/docs/{foundations-colours-docs.md → components_foundations-colour-030-colours.md} +8 -15
- package/generated/docs/{foundations-consistency-docs.md → components_foundations-consistency-docs.md} +12 -20
- package/generated/docs/{foundations-content-docs.md → components_foundations-content-docs.md} +6 -11
- package/generated/docs/components_foundations-introduction-docs.md +15 -0
- package/generated/docs/{foundations-principles-docs.md → components_foundations-principles-docs.md} +14 -24
- package/generated/docs/components_foundations-typography-docs.md +608 -0
- package/generated/docs/{foundations-user-experience-docs.md → components_foundations-user-experience-docs.md} +16 -26
- package/generated/docs/{foundations-visual-design-docs.md → components_foundations-visual-design-docs.md} +10 -17
- package/generated/docs/{frequently-asked-questions-docs.md → components_frequently-asked-questions-docs.md} +14 -23
- package/generated/docs/components_get-started-develop-docs.md +84 -0
- package/generated/docs/components_get-started-using-storybook-docs.md +55 -0
- package/generated/docs/components_introduction-docs.md +15 -0
- package/generated/docs/{patterns-loading-docs.md → components_patterns-loading-docs.md} +711 -143
- package/generated/docs/components_resources-changelog-docs.md +4 -0
- package/generated/docs/{resources-code-katas-docs.md → components_resources-code-katas-docs.md} +5 -9
- package/generated/docs/{resources-migration-guides-from-v4-to-v5-docs.md → components_resources-migration-guides-from-v4-to-v5-docs.md} +54 -239
- package/generated/docs/{versions-docs.md → components_versions-docs.md} +5 -8
- package/generated/docs/guidelines.md +484 -200
- package/generated/docs/introduction-docs.md +19 -30
- package/package.json +41 -45
- package/generated/docs/components-alert-docs.md +0 -130
- package/generated/docs/components-autocomplete-docs.md +0 -754
- package/generated/docs/components-button-docs.md +0 -362
- package/generated/docs/components-button-recipes-docs.md +0 -76
- package/generated/docs/components-buttongroup-docs.md +0 -310
- package/generated/docs/components-card-docs.md +0 -494
- package/generated/docs/components-checkbox-docs.md +0 -193
- package/generated/docs/components-combobox-docs.md +0 -1016
- package/generated/docs/components-filter-docs.md +0 -1109
- package/generated/docs/components-hide-docs.md +0 -265
- package/generated/docs/components-icon-docs.md +0 -553
- package/generated/docs/components-input-docs.md +0 -335
- package/generated/docs/components-input-recipes-docs.md +0 -140
- package/generated/docs/components-inputcurrency-docs.md +0 -157
- package/generated/docs/components-label-docs.md +0 -135
- package/generated/docs/components-menu-docs.md +0 -704
- package/generated/docs/components-menu-menuitem-docs.md +0 -193
- package/generated/docs/components-navbar-docs.md +0 -291
- package/generated/docs/components-placeholder-docs.md +0 -27
- package/generated/docs/components-popover-docs.md +0 -464
- package/generated/docs/components-progress-docs.md +0 -104
- package/generated/docs/components-radio-docs.md +0 -107
- package/generated/docs/components-readonly-docs.md +0 -89
- package/generated/docs/components-richselect-docs.md +0 -2433
- package/generated/docs/components-skeleton-docs.md +0 -214
- package/generated/docs/components-slideout-docs.md +0 -538
- package/generated/docs/components-slider-docs.md +0 -346
- package/generated/docs/components-spinner-docs.md +0 -59
- package/generated/docs/components-table-ag-grid-docs.md +0 -2666
- package/generated/docs/components-table-docs.md +0 -1305
- package/generated/docs/components-tabset-docs.md +0 -341
- package/generated/docs/components-tabset-tab-docs.md +0 -86
- package/generated/docs/components-tag-docs.md +0 -115
- package/generated/docs/components-toaster-toast-docs.md +0 -157
- package/generated/docs/components-toggle-docs.md +0 -158
- package/generated/docs/contact-us-docs.md +0 -27
- package/generated/docs/extensions-editor-docs.md +0 -288
- package/generated/docs/extensions-editor-recipes-docs.md +0 -39
- package/generated/docs/foundations-introduction-docs.md +0 -17
- package/generated/docs/foundations-typography-docs.md +0 -191
- package/generated/docs/get-started-develop-docs.md +0 -48
- package/generated/docs/get-started-using-storybook-docs.md +0 -68
- package/generated/docs/resources-changelog-docs.md +0 -6
- package/generated/docs/themes-available-themes-docs.md +0 -66
- package/generated/docs/themes-introduction-docs.md +0 -121
- package/generated/docs/themes-tokens-docs.md +0 -1200
- /package/{LICENSE.txt → LICENSE} +0 -0
|
@@ -1,362 +0,0 @@
|
|
|
1
|
-
[](#button)Button
|
|
2
|
-
=================
|
|
3
|
-
|
|
4
|
-
Overview
|
|
5
|
-
--------
|
|
6
|
-
|
|
7
|
-
A button is a clickable item used to perform an action.
|
|
8
|
-
|
|
9
|
-
Button
|
|
10
|
-
|
|
11
|
-
Hide code
|
|
12
|
-
|
|
13
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
14
|
-
|
|
15
|
-
<IressButton\>
|
|
16
|
-
Button
|
|
17
|
-
</IressButton\>
|
|
18
|
-
|
|
19
|
-
Copy
|
|
20
|
-
|
|
21
|
-
[](#examples)Examples
|
|
22
|
-
---------------------
|
|
23
|
-
|
|
24
|
-
### [](#modes)Modes
|
|
25
|
-
|
|
26
|
-
The `mode` prop controls the visual appearance and priority of the button.
|
|
27
|
-
|
|
28
|
-
* **Primary:** Use for the main call to action. Limit to one per view.
|
|
29
|
-
* **Secondary:** Use for secondary calls to action.
|
|
30
|
-
* **Tertiary:** Use when you need extra affordance between your secondary actions.
|
|
31
|
-
* **Link:** Use when you need a button to appear like a link.
|
|
32
|
-
* **Danger:** Use for added affordance on destructive actions, such as deleting data.
|
|
33
|
-
* **Positive:** Use for buy/purchase actions.
|
|
34
|
-
* **Negative:** Use for sell actions.
|
|
35
|
-
|
|
36
|
-
**Note:** Avoid setting `mode` to `link` when the only child of the button is an icon, as icons inside link buttons do not have an underline, and will have no visual indication that they are clickable.
|
|
37
|
-
|
|
38
|
-
Primary buttonSecondary buttonTertiary buttonLink buttonDanger buttonPositive buttonNegative button
|
|
39
|
-
|
|
40
|
-
Hide code
|
|
41
|
-
|
|
42
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
43
|
-
|
|
44
|
-
<div
|
|
45
|
-
className\="iress-u-inline iress--gutter--md"
|
|
46
|
-
style\={{
|
|
47
|
-
rowGap: 'var(--iress-g-spacing-md'
|
|
48
|
-
}}
|
|
49
|
-
\>
|
|
50
|
-
<IressButton mode\="primary"\>
|
|
51
|
-
Primary button </IressButton\>
|
|
52
|
-
<IressButton mode\="secondary"\>
|
|
53
|
-
Secondary button </IressButton\>
|
|
54
|
-
<IressButton mode\="tertiary"\>
|
|
55
|
-
Tertiary button </IressButton\>
|
|
56
|
-
<IressButton mode\="link"\>
|
|
57
|
-
Link button </IressButton\>
|
|
58
|
-
<IressButton mode\="danger"\>
|
|
59
|
-
Danger button </IressButton\>
|
|
60
|
-
<IressButton mode\="positive"\>
|
|
61
|
-
Positive button </IressButton\>
|
|
62
|
-
<IressButton mode\="negative"\>
|
|
63
|
-
Negative button </IressButton\>
|
|
64
|
-
</div\>
|
|
65
|
-
|
|
66
|
-
Copy
|
|
67
|
-
|
|
68
|
-
### [](#types)Types
|
|
69
|
-
|
|
70
|
-
The `type` property controls the behaviour of the button. It defaults to `button`, which is the best option for most situations, but can also be set to `submit` or `reset`. `submit` should be used for buttons that submit forms, and `reset` should be used if the button clears form data and resets the form to its original state.
|
|
71
|
-
|
|
72
|
-
**Please note:** this differs from a standard HTML button element, where the `type` defaults to submit.
|
|
73
|
-
|
|
74
|
-
Button buttonReset buttonSubmit button
|
|
75
|
-
|
|
76
|
-
Hide code
|
|
77
|
-
|
|
78
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
79
|
-
|
|
80
|
-
<div className\="iress-u-inline iress--gutter--md"\>
|
|
81
|
-
<IressButton type\="button"\>
|
|
82
|
-
Button button </IressButton\>
|
|
83
|
-
<IressButton type\="reset"\>
|
|
84
|
-
Reset button </IressButton\>
|
|
85
|
-
<IressButton type\="submit"\>
|
|
86
|
-
Submit button </IressButton\>
|
|
87
|
-
</div\>
|
|
88
|
-
|
|
89
|
-
Copy
|
|
90
|
-
|
|
91
|
-
### [](#loading)Loading
|
|
92
|
-
|
|
93
|
-
Loading buttons give the user an indication something is happening (eg. a form submission or extra content being loaded) after they have been triggered.
|
|
94
|
-
|
|
95
|
-
The loading state can be activated by setting the `loading` prop to `true` and providing some `loadingText` for screenreaders to announce when in loading state (which defaults to Loading...).
|
|
96
|
-
|
|
97
|
-
When the loading state is activated, any click events on the button are disabled.
|
|
98
|
-
|
|
99
|
-
Button text
|
|
100
|
-
|
|
101
|
-
Hide code
|
|
102
|
-
|
|
103
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
104
|
-
|
|
105
|
-
<div className\="iress-u-inline iress--gutter--md"\>
|
|
106
|
-
<IressButton loading\>
|
|
107
|
-
Button text </IressButton\>
|
|
108
|
-
<IressButton loading />
|
|
109
|
-
</div\>
|
|
110
|
-
|
|
111
|
-
Copy
|
|
112
|
-
|
|
113
|
-
### [](#buttons-as-links)Buttons as links
|
|
114
|
-
|
|
115
|
-
The `href` prop allows you to create a link that looks like a button. When set, the component will render an HTML anchor element instead of an HTML button element. This can be useful when you want to increase the target area and visual weight of a link, without changing the markup.
|
|
116
|
-
|
|
117
|
-
A good example of this is the Next and Previous links in a wizard layout. These should be HTML links (to tells the user that navigation will occur when clicked) but styling them as buttons makes them more prominent.
|
|
118
|
-
|
|
119
|
-
You can also use the link specific props `target` and `rel`.
|
|
120
|
-
|
|
121
|
-
If you need to use custom routing, take a look at the custom route slot documentation below.
|
|
122
|
-
|
|
123
|
-
[This is a link (anchor tag)](https://www.iress.com/)
|
|
124
|
-
|
|
125
|
-
Hide code
|
|
126
|
-
|
|
127
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
128
|
-
|
|
129
|
-
<IressButton
|
|
130
|
-
href\="https://www.iress.com/"
|
|
131
|
-
rel\="opener noreferrer"
|
|
132
|
-
target\="\_blank"
|
|
133
|
-
\>
|
|
134
|
-
This is a link (anchor tag)
|
|
135
|
-
</IressButton\>
|
|
136
|
-
|
|
137
|
-
Copy
|
|
138
|
-
|
|
139
|
-
### [](#delete-confirmation)Delete confirmation
|
|
140
|
-
|
|
141
|
-
Make sure that the user understands the consequences of clicking the button
|
|
142
|
-
---------------------------------------------------------------------------
|
|
143
|
-
|
|
144
|
-
You may want to add a confirmation step to prevent accidental data loss if the action is irreversible.
|
|
145
|
-
|
|
146
|
-
The confirmation step should be a modal with a simple message, as with the example below. Use a delete button for the modal's primary call to action, and use a secondary button for the cancel action.
|
|
147
|
-
|
|
148
|
-
If you're using a heading, ensure that it has an appropriate heading level to match the document structure. You should use a danger variant of the `IressText` element, with the element prop set to the appropriate heading level.
|
|
149
|
-
|
|
150
|
-
Delete button with confirm
|
|
151
|
-
|
|
152
|
-
Hide code
|
|
153
|
-
|
|
154
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
155
|
-
|
|
156
|
-
<IressButton
|
|
157
|
-
mode\="danger"
|
|
158
|
-
onClick\={() \=> {}}
|
|
159
|
-
\>
|
|
160
|
-
Delete button with confirm
|
|
161
|
-
</IressButton\>
|
|
162
|
-
|
|
163
|
-
Copy
|
|
164
|
-
|
|
165
|
-
### [](#fluid)Fluid
|
|
166
|
-
|
|
167
|
-
If the `fluid` prop is set to true, the button will expand to be 100% of the width of its container.
|
|
168
|
-
|
|
169
|
-
The `fluid` prop can also be set to a breakpoint size, which means the button will be fluid up until its breakpoint is passed.
|
|
170
|
-
|
|
171
|
-
Please resize your screen to see how the fluid value changes. Current breakpoint: **xl** (1200px and above).
|
|
172
|
-
|
|
173
|
-
Fluid: trueFluid: xsFluid: smFluid: mdFluid: lgFluid: xlFluid: xxl
|
|
174
|
-
|
|
175
|
-
Hide code
|
|
176
|
-
|
|
177
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
178
|
-
|
|
179
|
-
<div
|
|
180
|
-
className\="iress-u-inline iress--gutter--md"
|
|
181
|
-
style\={{
|
|
182
|
-
rowGap: 'var(--iress-g-spacing-md'
|
|
183
|
-
}}
|
|
184
|
-
\>
|
|
185
|
-
<IressText element\="p"\>
|
|
186
|
-
Please resize your screen to see how the fluid value changes. Current breakpoint:{' '}
|
|
187
|
-
<CurrentBreakpoint renderLabel\="and-above" />
|
|
188
|
-
. </IressText\>
|
|
189
|
-
<IressButton fluid\>
|
|
190
|
-
Fluid: true </IressButton\>
|
|
191
|
-
<IressButton fluid\="xs"\>
|
|
192
|
-
Fluid: xs </IressButton\>
|
|
193
|
-
<IressButton fluid\="sm"\>
|
|
194
|
-
Fluid: sm </IressButton\>
|
|
195
|
-
<IressButton fluid\="md"\>
|
|
196
|
-
Fluid: md </IressButton\>
|
|
197
|
-
<IressButton fluid\="lg"\>
|
|
198
|
-
Fluid: lg </IressButton\>
|
|
199
|
-
<IressButton fluid\="xl"\>
|
|
200
|
-
Fluid: xl </IressButton\>
|
|
201
|
-
<IressButton fluid\="xxl"\>
|
|
202
|
-
Fluid: xxl </IressButton\>
|
|
203
|
-
</div\>
|
|
204
|
-
|
|
205
|
-
Copy
|
|
206
|
-
|
|
207
|
-
### [](#wrapping-text)Wrapping text
|
|
208
|
-
|
|
209
|
-
Button text will wrap on to a new line if there's not enough space for the text to sit on a single line. If you want to prevent the text from wrapping, you can set the `noWrap` prop to `true`.
|
|
210
|
-
|
|
211
|
-
If your button contains a lot of text, the text may wrap on to more than one line. You can manage this on a case by case basis by setting a minimum width on your button via CSS if you need to.
|
|
212
|
-
|
|
213
|
-
Button with lots of text content that will wrap (default behaviour)
|
|
214
|
-
|
|
215
|
-
Button with lots of text content and a minimum width set via CSS
|
|
216
|
-
|
|
217
|
-
Button with lots of text content with the noWrap prop set to true
|
|
218
|
-
|
|
219
|
-
Hide code
|
|
220
|
-
|
|
221
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
222
|
-
|
|
223
|
-
<div
|
|
224
|
-
style\={{
|
|
225
|
-
width: 250
|
|
226
|
-
}}
|
|
227
|
-
\>
|
|
228
|
-
<p\>
|
|
229
|
-
<IressButton\>
|
|
230
|
-
Button with lots of text content that will wrap (default behaviour) </IressButton\>
|
|
231
|
-
</p\>
|
|
232
|
-
<p\>
|
|
233
|
-
<IressButton
|
|
234
|
-
style\={{
|
|
235
|
-
minWidth: 300
|
|
236
|
-
}}
|
|
237
|
-
\>
|
|
238
|
-
Button with lots of text content and a minimum width set via CSS </IressButton\>
|
|
239
|
-
</p\>
|
|
240
|
-
<p\>
|
|
241
|
-
<IressButton noWrap\>
|
|
242
|
-
Button with lots of text content with the noWrap prop set to true </IressButton\>
|
|
243
|
-
</p\>
|
|
244
|
-
</div\>
|
|
245
|
-
|
|
246
|
-
Copy
|
|
247
|
-
|
|
248
|
-
### [](#slot-props)Slot props
|
|
249
|
-
|
|
250
|
-
Use the slots to correctly position icons or badges inside buttons.
|
|
251
|
-
|
|
252
|
-
* **Prepend** - Places the element before the text
|
|
253
|
-
* **Append** - Places the element after the text
|
|
254
|
-
|
|
255
|
-
The iconOnly slot from previous versions of IDS has been deprecated. Please use the default slot instead.
|
|
256
|
-
|
|
257
|
-
Prepend iconNewPrepend badge
|
|
258
|
-
|
|
259
|
-
Append iconAppend badge+999
|
|
260
|
-
|
|
261
|
-
Hide code
|
|
262
|
-
|
|
263
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
264
|
-
|
|
265
|
-
<\>
|
|
266
|
-
<p className\="iress-u-inline iress--gutter--md"\>
|
|
267
|
-
<IressButton prepend\={<IressIcon name\="home" />}\>
|
|
268
|
-
Prepend icon </IressButton\>
|
|
269
|
-
<IressButton prepend\={<IressBadge mode\="info"\>New</IressBadge\>}\>
|
|
270
|
-
Prepend badge </IressButton\>
|
|
271
|
-
</p\>
|
|
272
|
-
<p className\="iress-u-inline iress--gutter--md"\>
|
|
273
|
-
<IressButton append\={<IressIcon name\="home" />}\>
|
|
274
|
-
Append icon </IressButton\>
|
|
275
|
-
<IressButton append\={<IressBadge mode\="info"\>+999</IressBadge\>}\>
|
|
276
|
-
Append badge </IressButton\>
|
|
277
|
-
</p\>
|
|
278
|
-
<p className\="iress-u-inline iress--gutter--md"\>
|
|
279
|
-
<IressButton\>
|
|
280
|
-
<IressIcon name\="home" />
|
|
281
|
-
</IressButton\>
|
|
282
|
-
</p\>
|
|
283
|
-
</\>
|
|
284
|
-
|
|
285
|
-
Copy
|
|
286
|
-
|
|
287
|
-
### [](#other-attributes)Other attributes
|
|
288
|
-
|
|
289
|
-
Any other attributes you pass to the component will be spread to the underlying HTML button or anchor element.
|
|
290
|
-
|
|
291
|
-
This allows you to add your own aria attributes, or data attributes for analytics, as an example.
|
|
292
|
-
|
|
293
|
-
**Note:** The `attrs` prop has been deprecated, and will be removed in a future version. Please pass the attributes directly to the component instead.
|
|
294
|
-
|
|
295
|
-
Button text
|
|
296
|
-
|
|
297
|
-
Hide code
|
|
298
|
-
|
|
299
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
300
|
-
|
|
301
|
-
<IressButton data-analytics-id\="test"\>
|
|
302
|
-
Button text
|
|
303
|
-
</IressButton\>
|
|
304
|
-
|
|
305
|
-
Copy
|
|
306
|
-
|
|
307
|
-
### [](#download-button)Download button
|
|
308
|
-
|
|
309
|
-
Whilst `IressButton` does not have a `download` property, it can be configured quite easily.
|
|
310
|
-
|
|
311
|
-
Please see the example below. The use of an icon is optional.
|
|
312
|
-
|
|
313
|
-
[Download logo](assets/iress-logo.png)
|
|
314
|
-
|
|
315
|
-
Hide code
|
|
316
|
-
|
|
317
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
318
|
-
|
|
319
|
-
<IressButton
|
|
320
|
-
download
|
|
321
|
-
href\="assets/iress-logo.png"
|
|
322
|
-
prepend\={<IressIcon name\="download" />}
|
|
323
|
-
\>
|
|
324
|
-
Download logo
|
|
325
|
-
</IressButton\>
|
|
326
|
-
|
|
327
|
-
Copy
|
|
328
|
-
|
|
329
|
-
[](#iressclosebutton)`IressCloseButton`
|
|
330
|
-
---------------------------------------
|
|
331
|
-
|
|
332
|
-
`IressCloseButton` is a special variant of `IressButton` that is used to execute a close action. It is used in modals, slideouts, and other components that require a close button.
|
|
333
|
-
|
|
334
|
-
It has one additional prop, `screenReaderText`, which is used to provide a screen reader only label for the close button.
|
|
335
|
-
|
|
336
|
-
Hide code
|
|
337
|
-
|
|
338
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
339
|
-
|
|
340
|
-
<IressCloseButton
|
|
341
|
-
append\=""
|
|
342
|
-
prepend\=""
|
|
343
|
-
/>
|
|
344
|
-
|
|
345
|
-
Copy
|
|
346
|
-
|
|
347
|
-
On this page
|
|
348
|
-
|
|
349
|
-
* [Overview](#overview)
|
|
350
|
-
* [Props](#props)
|
|
351
|
-
* [Examples](#examples)
|
|
352
|
-
* [Modes](#modes)
|
|
353
|
-
* [Types](#types)
|
|
354
|
-
* [Loading](#loading)
|
|
355
|
-
* [Buttons as links](#buttons-as-links)
|
|
356
|
-
* [Delete confirmation](#delete-confirmation)
|
|
357
|
-
* [Fluid](#fluid)
|
|
358
|
-
* [Wrapping text](#wrapping-text)
|
|
359
|
-
* [Slot props](#slot-props)
|
|
360
|
-
* [Other attributes](#other-attributes)
|
|
361
|
-
* [Download button](#download-button)
|
|
362
|
-
* [IressCloseButton](#iressclosebutton)
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
[](#recipes)Recipes
|
|
2
|
-
===================
|
|
3
|
-
|
|
4
|
-
[](#using-with-react-router)Using with React Router
|
|
5
|
-
---------------------------------------------------
|
|
6
|
-
|
|
7
|
-
To use the `IressButton` component with React Router, you can use the `useHref` hook to get the `href` prop to pass to the `IressButton` component.
|
|
8
|
-
|
|
9
|
-
Learn more about the `useHref` hook in the [React Router documentation](https://reactrouter.com/docs/en/v6/api#usehref).
|
|
10
|
-
|
|
11
|
-
\[data-radix-scroll-area-viewport\] {
|
|
12
|
-
scrollbar-width: none;
|
|
13
|
-
-ms-overflow-style: none;
|
|
14
|
-
-webkit-overflow-scrolling: touch;
|
|
15
|
-
}
|
|
16
|
-
\[data-radix-scroll-area-viewport\]::-webkit-scrollbar {
|
|
17
|
-
display: none;
|
|
18
|
-
}
|
|
19
|
-
:where(\[data-radix-scroll-area-viewport\]) {
|
|
20
|
-
display: flex;
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
align-items: stretch;
|
|
23
|
-
}
|
|
24
|
-
:where(\[data-radix-scroll-area-content\]) {
|
|
25
|
-
flex-grow: 1;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
import { IressButton } from '@iress/components';
|
|
29
|
-
import { useHref } from 'react-router-dom';
|
|
30
|
-
const ReactRouterButton \= () \=> {
|
|
31
|
-
const href \= useHref('/path/to/page');
|
|
32
|
-
return <IressButton href\={href}\>Go to page</IressButton\>;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
Copy
|
|
36
|
-
|
|
37
|
-
[](#using-with-nextjs)Using with Next.js
|
|
38
|
-
----------------------------------------
|
|
39
|
-
|
|
40
|
-
To use the `IressButton` component with Next.js, you can use the `legacyBehavior` and `passHref` props to pass the `href` prop to the `IressButton` component.
|
|
41
|
-
|
|
42
|
-
Learn more about the `Link` component in the [Next.js documentation](https://nextjs.org/docs/pages/api-reference/components/link#nesting-a-functional-component).
|
|
43
|
-
|
|
44
|
-
\[data-radix-scroll-area-viewport\] {
|
|
45
|
-
scrollbar-width: none;
|
|
46
|
-
-ms-overflow-style: none;
|
|
47
|
-
-webkit-overflow-scrolling: touch;
|
|
48
|
-
}
|
|
49
|
-
\[data-radix-scroll-area-viewport\]::-webkit-scrollbar {
|
|
50
|
-
display: none;
|
|
51
|
-
}
|
|
52
|
-
:where(\[data-radix-scroll-area-viewport\]) {
|
|
53
|
-
display: flex;
|
|
54
|
-
flex-direction: column;
|
|
55
|
-
align-items: stretch;
|
|
56
|
-
}
|
|
57
|
-
:where(\[data-radix-scroll-area-content\]) {
|
|
58
|
-
flex-grow: 1;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
import { IressButton } from '@iress/components';
|
|
62
|
-
import Link from 'next/link';
|
|
63
|
-
const NextButton \= () \=> {
|
|
64
|
-
return (
|
|
65
|
-
<Link href\="/path/to/page" legacyBehavior passHref\>
|
|
66
|
-
<IressButton\>Go to page</IressButton\>
|
|
67
|
-
</Link\>
|
|
68
|
-
);
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
Copy
|
|
72
|
-
|
|
73
|
-
On this page
|
|
74
|
-
|
|
75
|
-
* [Using with React Router](#using-with-react-router)
|
|
76
|
-
* [Using with Next.js](#using-with-nextjs)
|