@rio-cloud/uikit-mcp 1.1.3 → 1.1.5
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/README.md +1 -0
- package/dist/doc-metadata.json +97 -97
- package/dist/docs/components/accentBar.md +5 -5
- package/dist/docs/components/activity.md +7 -7
- package/dist/docs/components/animatedNumber.md +10 -10
- package/dist/docs/components/animatedTextReveal.md +42 -43
- package/dist/docs/components/animations.md +42 -34
- package/dist/docs/components/appHeader.md +20 -35
- package/dist/docs/components/appLayout.md +198 -221
- package/dist/docs/components/appNavigationBar.md +21 -21
- package/dist/docs/components/areaCharts.md +38 -38
- package/dist/docs/components/aspectRatioPlaceholder.md +4 -5
- package/dist/docs/components/assetTree.md +887 -614
- package/dist/docs/components/autosuggests.md +4 -4
- package/dist/docs/components/avatar.md +7 -7
- package/dist/docs/components/banner.md +2 -2
- package/dist/docs/components/barCharts.md +173 -173
- package/dist/docs/components/barList.md +19 -41
- package/dist/docs/components/basicMap.md +1 -1
- package/dist/docs/components/bottomSheet.md +74 -74
- package/dist/docs/components/button.md +161 -71
- package/dist/docs/components/buttonToolbar.md +3 -3
- package/dist/docs/components/calendarStripe.md +71 -123
- package/dist/docs/components/card.md +4 -4
- package/dist/docs/components/carousel.md +1 -1
- package/dist/docs/components/chartColors.md +1 -1
- package/dist/docs/components/chartsGettingStarted.md +1 -1
- package/dist/docs/components/chat.md +2 -2
- package/dist/docs/components/checkbox.md +56 -131
- package/dist/docs/components/clearableInput.md +23 -127
- package/dist/docs/components/collapse.md +14 -16
- package/dist/docs/components/composedCharts.md +31 -31
- package/dist/docs/components/contentLoader.md +125 -122
- package/dist/docs/components/dataTabs.md +103 -93
- package/dist/docs/components/datepickers.md +734 -764
- package/dist/docs/components/dialogs.md +299 -186
- package/dist/docs/components/divider.md +4 -4
- package/dist/docs/components/dropdowns.md +4555 -4498
- package/dist/docs/components/editableContent.md +97 -97
- package/dist/docs/components/expander.md +56 -56
- package/dist/docs/components/fade.md +41 -41
- package/dist/docs/components/fadeExpander.md +4 -4
- package/dist/docs/components/fadeUp.md +8 -10
- package/dist/docs/components/feedback.md +22 -21
- package/dist/docs/components/filePickers.md +25 -25
- package/dist/docs/components/formLabel.md +5 -7
- package/dist/docs/components/groupedItemList.md +37 -37
- package/dist/docs/components/iconList.md +4 -4
- package/dist/docs/components/imagePreloader.md +6 -6
- package/dist/docs/components/labeledElement.md +4 -3
- package/dist/docs/components/licensePlate.md +2 -2
- package/dist/docs/components/lineCharts.md +58 -58
- package/dist/docs/components/listMenu.md +63 -41
- package/dist/docs/components/loadMore.md +17 -17
- package/dist/docs/components/mainNavigation.md +1 -1
- package/dist/docs/components/mapCircle.md +1 -1
- package/dist/docs/components/mapCluster.md +1 -1
- package/dist/docs/components/mapContext.md +1 -1
- package/dist/docs/components/mapDraggableMarker.md +1 -1
- package/dist/docs/components/mapGettingStarted.md +1 -1
- package/dist/docs/components/mapInfoBubble.md +1 -1
- package/dist/docs/components/mapLayerGroup.md +1 -1
- package/dist/docs/components/mapMarker.md +339 -345
- package/dist/docs/components/mapPolygon.md +16 -20
- package/dist/docs/components/mapRoute.md +14 -20
- package/dist/docs/components/mapRouteGenerator.md +1 -1
- package/dist/docs/components/mapSettings.md +263 -274
- package/dist/docs/components/mapUtils.md +3 -5
- package/dist/docs/components/multiselects.md +1 -1
- package/dist/docs/components/noData.md +11 -11
- package/dist/docs/components/notifications.md +1 -1
- package/dist/docs/components/numbercontrol.md +39 -37
- package/dist/docs/components/onboarding.md +18 -38
- package/dist/docs/components/page.md +16 -16
- package/dist/docs/components/pager.md +8 -8
- package/dist/docs/components/pieCharts.md +124 -124
- package/dist/docs/components/popover.md +37 -53
- package/dist/docs/components/position.md +4 -4
- package/dist/docs/components/radialBarCharts.md +506 -506
- package/dist/docs/components/radiobutton.md +209 -191
- package/dist/docs/components/releaseNotes.md +9 -3
- package/dist/docs/components/resizer.md +7 -8
- package/dist/docs/components/responsiveColumnStripe.md +11 -11
- package/dist/docs/components/responsiveVideo.md +5 -5
- package/dist/docs/components/rioglyph.md +11 -11
- package/dist/docs/components/rules.md +118 -92
- package/dist/docs/components/saveableInput.md +366 -356
- package/dist/docs/components/selects.md +9996 -15
- package/dist/docs/components/sidebar.md +22 -23
- package/dist/docs/components/sliders.md +26 -26
- package/dist/docs/components/smoothScrollbars.md +61 -25
- package/dist/docs/components/spinners.md +32 -30
- package/dist/docs/components/states.md +236 -245
- package/dist/docs/components/statsWidgets.md +37 -28
- package/dist/docs/components/statusBar.md +22 -22
- package/dist/docs/components/stepButton.md +2 -2
- package/dist/docs/components/steppedProgressBars.md +45 -45
- package/dist/docs/components/subNavigation.md +3 -3
- package/dist/docs/components/supportMarker.md +1 -1
- package/dist/docs/components/svgImage.md +2 -38
- package/dist/docs/components/switch.md +11 -11
- package/dist/docs/components/tables.md +1 -1
- package/dist/docs/components/tagManager.md +40 -40
- package/dist/docs/components/tags.md +21 -20
- package/dist/docs/components/teaser.md +22 -23
- package/dist/docs/components/timeline.md +1 -1
- package/dist/docs/components/timepicker.md +17 -13
- package/dist/docs/components/toggleButton.md +65 -29
- package/dist/docs/components/tooltip.md +27 -50
- package/dist/docs/components/virtualList.md +75 -75
- package/dist/docs/foundations.md +167 -167
- package/dist/docs/start/changelog.md +23 -1
- package/dist/docs/start/goodtoknow.md +1 -1
- package/dist/docs/start/guidelines/color-combinations.md +1 -1
- package/dist/docs/start/guidelines/custom-css.md +1 -1
- package/dist/docs/start/guidelines/custom-rioglyph.md +1 -1
- package/dist/docs/start/guidelines/formatting.md +1 -1
- package/dist/docs/start/guidelines/iframe.md +80 -27
- package/dist/docs/start/guidelines/obfuscate-data.md +1 -1
- package/dist/docs/start/guidelines/print-css.md +1 -1
- package/dist/docs/start/guidelines/spinner.md +81 -81
- package/dist/docs/start/guidelines/supported-browsers.md +1 -1
- package/dist/docs/start/guidelines/writing.md +1 -1
- package/dist/docs/start/howto.md +9 -9
- package/dist/docs/start/intro.md +1 -1
- package/dist/docs/start/responsiveness.md +1 -1
- package/dist/docs/templates/common-table.md +11 -11
- package/dist/docs/templates/detail-views.md +2 -2
- package/dist/docs/templates/expandable-details.md +1 -1
- package/dist/docs/templates/feature-cards.md +55 -55
- package/dist/docs/templates/form-summary.md +22 -22
- package/dist/docs/templates/form-toggle.md +1 -1
- package/dist/docs/templates/list-blocks.md +197 -197
- package/dist/docs/templates/loading-progress.md +1 -1
- package/dist/docs/templates/options-panel.md +1 -1
- package/dist/docs/templates/panel-variants.md +1 -1
- package/dist/docs/templates/progress-cards.md +1 -1
- package/dist/docs/templates/progress-success.md +1 -1
- package/dist/docs/templates/settings-form.md +23 -23
- package/dist/docs/templates/stats-blocks.md +41 -41
- package/dist/docs/templates/table-panel.md +1 -1
- package/dist/docs/templates/table-row-animation.md +1 -1
- package/dist/docs/templates/usage-cards.md +1 -1
- package/dist/docs/utilities/deviceUtils.md +6 -3
- package/dist/docs/utilities/featureToggles.md +1 -1
- package/dist/docs/utilities/fuelTypeUtils.md +1 -1
- package/dist/docs/utilities/routeUtils.md +59 -23
- package/dist/docs/utilities/useAfterMount.md +1 -1
- package/dist/docs/utilities/useAutoAnimate.md +1 -1
- package/dist/docs/utilities/useAverage.md +1 -1
- package/dist/docs/utilities/useClickOutside.md +1 -1
- package/dist/docs/utilities/useClipboard.md +2 -2
- package/dist/docs/utilities/useCount.md +1 -1
- package/dist/docs/utilities/useDarkMode.md +1 -1
- package/dist/docs/utilities/useDebugInfo.md +4 -4
- package/dist/docs/utilities/useEffectOnce.md +1 -1
- package/dist/docs/utilities/useElapsedTime.md +1 -1
- package/dist/docs/utilities/useElementSize.md +1 -1
- package/dist/docs/utilities/useEsc.md +1 -1
- package/dist/docs/utilities/useEvent.md +1 -1
- package/dist/docs/utilities/useFocusTrap.md +1 -1
- package/dist/docs/utilities/useFullscreen.md +1 -1
- package/dist/docs/utilities/useHover.md +1 -1
- package/dist/docs/utilities/useIncomingPostMessages.md +1 -1
- package/dist/docs/utilities/useInterval.md +1 -1
- package/dist/docs/utilities/useIsFocusWithin.md +1 -1
- package/dist/docs/utilities/useKey.md +7 -5
- package/dist/docs/utilities/useLocalStorage.md +1 -1
- package/dist/docs/utilities/useLocationSuggestions.md +1 -1
- package/dist/docs/utilities/useMax.md +1 -1
- package/dist/docs/utilities/useMin.md +1 -1
- package/dist/docs/utilities/useMutationObserver.md +1 -1
- package/dist/docs/utilities/useOnScreen.md +1 -1
- package/dist/docs/utilities/useOnlineStatus.md +1 -1
- package/dist/docs/utilities/usePostMessage.md +58 -2
- package/dist/docs/utilities/usePostMessageSender.md +1 -1
- package/dist/docs/utilities/usePrevious.md +1 -1
- package/dist/docs/utilities/useResizeObserver.md +1 -1
- package/dist/docs/utilities/useScrollPosition.md +1 -1
- package/dist/docs/utilities/useSearch.md +1 -1
- package/dist/docs/utilities/useSorting.md +1 -1
- package/dist/docs/utilities/useStateWithValidation.md +1 -1
- package/dist/docs/utilities/useSum.md +1 -1
- package/dist/docs/utilities/useTableExport.md +54 -54
- package/dist/docs/utilities/useTableSelection.md +93 -93
- package/dist/docs/utilities/useTimeout.md +1 -1
- package/dist/docs/utilities/useToggle.md +1 -1
- package/dist/docs/utilities/useWindowResize.md +1 -1
- package/dist/index.mjs +8 -8
- package/dist/version.json +2 -2
- package/package.json +6 -6
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Interaction
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#components/radiobutton
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-02-03T14:04:20.757Z
|
|
7
7
|
|
|
8
8
|
NoteWhen using the custom option, make sure to wrap the children with the class name radio-text-wrapper. For using the radio tick, use an element with class name radio-text.
|
|
9
9
|
|
|
10
10
|
## RadioButton
|
|
11
11
|
|
|
12
|
-
### Example:
|
|
12
|
+
### Example: Last selected option: nothing selected yet
|
|
13
13
|
|
|
14
14
|
Option one is selected by default
|
|
15
15
|
Option two can be something else and selecting it will deselect option one
|
|
@@ -17,6 +17,7 @@ Option three is disabled
|
|
|
17
17
|
123
|
|
18
18
|
Km
|
|
19
19
|
Miles
|
|
20
|
+
Last selected option: nothing selected yet
|
|
20
21
|
|
|
21
22
|
#### Summary
|
|
22
23
|
|
|
@@ -26,58 +27,73 @@ Option three is disabled
|
|
|
26
27
|
123
|
|
27
28
|
Km
|
|
28
29
|
Miles
|
|
30
|
+
Last selected option: nothing selected yet
|
|
29
31
|
|
|
30
32
|
#### React (tsx)
|
|
31
33
|
|
|
32
34
|
```tsx
|
|
33
35
|
import RadioButton from '@rio-cloud/rio-uikit/RadioButton';
|
|
36
|
+
import { useState } from 'react';
|
|
34
37
|
|
|
35
|
-
export default () =>
|
|
36
|
-
|
|
37
|
-
<div>
|
|
38
|
-
<RadioButton name='radios' id='optionsRadios1' value='option1' defaultChecked>
|
|
39
|
-
Option one is selected by default
|
|
40
|
-
</RadioButton>
|
|
41
|
-
</div>
|
|
42
|
-
<div>
|
|
43
|
-
<RadioButton name='radios' id='optionsRadios2' value='option2'>
|
|
44
|
-
Option two can be something else and selecting it will deselect option one
|
|
45
|
-
</RadioButton>
|
|
46
|
-
</div>
|
|
47
|
-
<div>
|
|
48
|
-
<RadioButton name='radios' id='optionsRadios3' value='option3' disabled>
|
|
49
|
-
Option three is disabled
|
|
50
|
-
</RadioButton>
|
|
51
|
-
</div>
|
|
38
|
+
export default () => {
|
|
39
|
+
const [lastSelectedOption, setLastSelectedOption] = useState('');
|
|
52
40
|
|
|
53
|
-
|
|
41
|
+
const handleClick = (event: React.MouseEvent<HTMLInputElement>) => {
|
|
42
|
+
console.log(event.currentTarget.value);
|
|
43
|
+
setLastSelectedOption(event.currentTarget.value);
|
|
44
|
+
};
|
|
54
45
|
|
|
46
|
+
return (
|
|
55
47
|
<div>
|
|
56
|
-
<
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
48
|
+
<div>
|
|
49
|
+
<RadioButton name='radios' value='option1' defaultChecked onClick={handleClick}>
|
|
50
|
+
Option one is selected by default
|
|
51
|
+
</RadioButton>
|
|
52
|
+
</div>
|
|
53
|
+
<div>
|
|
54
|
+
<RadioButton name='radios' value='option2' onClick={handleClick}>
|
|
55
|
+
Option two can be something else and selecting it will deselect option one
|
|
56
|
+
</RadioButton>
|
|
57
|
+
</div>
|
|
58
|
+
<div>
|
|
59
|
+
<RadioButton name='radios' value='option3' disabled onClick={handleClick}>
|
|
60
|
+
Option three is disabled
|
|
61
|
+
</RadioButton>
|
|
62
|
+
</div>
|
|
66
63
|
|
|
67
|
-
|
|
64
|
+
<hr />
|
|
68
65
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
66
|
+
<div>
|
|
67
|
+
<RadioButton name='radiosInline' value='1' onClick={handleClick} inline>
|
|
68
|
+
1
|
|
69
|
+
</RadioButton>
|
|
70
|
+
<RadioButton name='radiosInline' value='2' onClick={handleClick} inline>
|
|
71
|
+
2
|
|
72
|
+
</RadioButton>
|
|
73
|
+
<RadioButton name='radiosInline' value='3' onClick={handleClick} inline>
|
|
74
|
+
3
|
|
75
|
+
</RadioButton>
|
|
76
|
+
</div>
|
|
77
|
+
|
|
78
|
+
<hr />
|
|
79
|
+
|
|
80
|
+
<div>
|
|
81
|
+
<RadioButton name='radiosRight' value='km' right onClick={handleClick} inline>
|
|
82
|
+
Km
|
|
83
|
+
</RadioButton>
|
|
84
|
+
</div>
|
|
85
|
+
<div>
|
|
86
|
+
<RadioButton name='radiosRight' value='miles' right onClick={handleClick} inline>
|
|
87
|
+
Miles
|
|
88
|
+
</RadioButton>
|
|
89
|
+
</div>
|
|
90
|
+
|
|
91
|
+
<div className='margin-top-25 text-color-dark'>
|
|
92
|
+
Last selected option: {lastSelectedOption || <i>nothing selected yet</i>}
|
|
93
|
+
</div>
|
|
78
94
|
</div>
|
|
79
|
-
|
|
80
|
-
|
|
95
|
+
);
|
|
96
|
+
};
|
|
81
97
|
```
|
|
82
98
|
|
|
83
99
|
#### HTML (html)
|
|
@@ -85,7 +101,7 @@ export default () => (
|
|
|
85
101
|
```html
|
|
86
102
|
<div>
|
|
87
103
|
<div>
|
|
88
|
-
<label
|
|
104
|
+
<label class="radio" tabindex="0">
|
|
89
105
|
<input type="radio" class="" name="radios" value="option1" checked="">
|
|
90
106
|
<span class="radio-text">
|
|
91
107
|
<span>Option one is selected by default</span>
|
|
@@ -93,7 +109,7 @@ export default () => (
|
|
|
93
109
|
</label>
|
|
94
110
|
</div>
|
|
95
111
|
<div>
|
|
96
|
-
<label
|
|
112
|
+
<label class="radio" tabindex="0">
|
|
97
113
|
<input type="radio" class="" name="radios" value="option2">
|
|
98
114
|
<span class="radio-text">
|
|
99
115
|
<span>Option two can be something else and selecting it will deselect option one</span>
|
|
@@ -101,7 +117,7 @@ export default () => (
|
|
|
101
117
|
</label>
|
|
102
118
|
</div>
|
|
103
119
|
<div>
|
|
104
|
-
<label
|
|
120
|
+
<label class="radio" tabindex="0">
|
|
105
121
|
<input type="radio" disabled="" class="" name="radios" value="option3">
|
|
106
122
|
<span class="radio-text">
|
|
107
123
|
<span>Option three is disabled</span>
|
|
@@ -110,20 +126,20 @@ export default () => (
|
|
|
110
126
|
</div>
|
|
111
127
|
<hr>
|
|
112
128
|
<div>
|
|
113
|
-
<label
|
|
114
|
-
<input type="radio" class="" name="radiosInline" value="">
|
|
129
|
+
<label class="radio radio-inline" tabindex="0">
|
|
130
|
+
<input type="radio" class="" name="radiosInline" value="1">
|
|
115
131
|
<span class="radio-text">
|
|
116
132
|
<span>1</span>
|
|
117
133
|
</span>
|
|
118
134
|
</label>
|
|
119
|
-
<label
|
|
120
|
-
<input type="radio" class="" name="radiosInline" value="">
|
|
135
|
+
<label class="radio radio-inline" tabindex="0">
|
|
136
|
+
<input type="radio" class="" name="radiosInline" value="2">
|
|
121
137
|
<span class="radio-text">
|
|
122
138
|
<span>2</span>
|
|
123
139
|
</span>
|
|
124
140
|
</label>
|
|
125
|
-
<label
|
|
126
|
-
<input type="radio" class="" name="radiosInline" value="">
|
|
141
|
+
<label class="radio radio-inline" tabindex="0">
|
|
142
|
+
<input type="radio" class="" name="radiosInline" value="3">
|
|
127
143
|
<span class="radio-text">
|
|
128
144
|
<span>3</span>
|
|
129
145
|
</span>
|
|
@@ -131,21 +147,23 @@ export default () => (
|
|
|
131
147
|
</div>
|
|
132
148
|
<hr>
|
|
133
149
|
<div>
|
|
134
|
-
<label
|
|
135
|
-
<input type="radio" class="icon-right" name="radiosRight" value="">
|
|
150
|
+
<label class="radio radio-inline" tabindex="0">
|
|
151
|
+
<input type="radio" class="icon-right" name="radiosRight" value="km">
|
|
136
152
|
<span class="radio-text">
|
|
137
153
|
<span>Km</span>
|
|
138
154
|
</span>
|
|
139
155
|
</label>
|
|
140
156
|
</div>
|
|
141
157
|
<div>
|
|
142
|
-
<label
|
|
143
|
-
<input type="radio" class="icon-right" name="radiosRight" value="">
|
|
158
|
+
<label class="radio radio-inline" tabindex="0">
|
|
159
|
+
<input type="radio" class="icon-right" name="radiosRight" value="miles">
|
|
144
160
|
<span class="radio-text">
|
|
145
161
|
<span>Miles</span>
|
|
146
162
|
</span>
|
|
147
163
|
</label>
|
|
148
164
|
</div>
|
|
165
|
+
<div class="margin-top-25 text-color-dark">Last selected option: <i>nothing selected yet</i>
|
|
166
|
+
</div>
|
|
149
167
|
</div>
|
|
150
168
|
```
|
|
151
169
|
|
|
@@ -153,23 +171,23 @@ export default () => (
|
|
|
153
171
|
|
|
154
172
|
| Name | Type | Default | Description |
|
|
155
173
|
| --- | --- | --- | --- |
|
|
156
|
-
|
|
|
157
|
-
|
|
|
158
|
-
|
|
|
159
|
-
|
|
|
160
|
-
|
|
|
161
|
-
|
|
|
162
|
-
|
|
|
163
|
-
|
|
|
164
|
-
|
|
|
165
|
-
|
|
|
166
|
-
|
|
|
167
|
-
|
|
|
168
|
-
|
|
|
169
|
-
|
|
|
170
|
-
|
|
|
171
|
-
|
|
|
172
|
-
|
|
|
174
|
+
| icon | string | — | Define any rioglyph icon like "rioglyph-truck". |
|
|
175
|
+
| iconLabelPosition | 'vertical' \| 'horizontal' | 'vertical' | The label position. Possible values are: 'horizontal' or 'vertical'. |
|
|
176
|
+
| iconSize | number | 16 | The icon Size in px. |
|
|
177
|
+
| label | string \| ReactNode | — | Defines the label text. |
|
|
178
|
+
| onClick | MouseEventHandler<{ value: string \| string[] \| number; }> | () => {} | Callback function that is invoked when the radio button is clicked. |
|
|
179
|
+
| onChange | ChangeEventHandler | () => {} | Callback function that is invoked when the radio button is toggled and the state should change (for controlled usage). |
|
|
180
|
+
| checked | boolean | — | Defines whether the radio is checked (for controlled usage). |
|
|
181
|
+
| defaultChecked | boolean | — | Defines whether the radio is initially checked (state can be changed on click). |
|
|
182
|
+
| disabled | boolean | false | Defines whether the checkbox is disabled. |
|
|
183
|
+
| className | string | — | Additional classes to be set on the input element. |
|
|
184
|
+
| inline | boolean | false | Defines whether the radio button is applying an inline style. Use this in combination with other radio buttons. |
|
|
185
|
+
| right | boolean | false | Displays the icon on the right side of the text. |
|
|
186
|
+
| custom | boolean | false | Allows for rendering a completely different layout with or without a radio tick. |
|
|
187
|
+
| name | string | — | Name to be given to the input element. |
|
|
188
|
+
| value | string | — | The value attribute is a string containing the radio button's value but it is never shown to the user. It serves a special purpose for inputs of type radio: when a form is submitted, only radio buttons which are currently checked are submitted, and the reported value is the value of the value attribute. If the value is not otherwise specified, it is the string on by default. This is useful when using native FormData when submitting a form to get the selected radio button value. |
|
|
189
|
+
| tabIndex | number | 0 | The tabindex attribute allows developers to make HTML elements focusable, allow or prevent them from being sequentially focusable (usually with the Tab key, hence the name) and determine their relative ordering for sequential focus navigation. See tabIndex |
|
|
190
|
+
| inputRef | Ref<HTMLInputElement> | — | Ref which is added to the input element. |
|
|
173
191
|
|
|
174
192
|
## Controlled example
|
|
175
193
|
|
|
@@ -238,23 +256,23 @@ export default () => {
|
|
|
238
256
|
|
|
239
257
|
| Name | Type | Default | Description |
|
|
240
258
|
| --- | --- | --- | --- |
|
|
241
|
-
|
|
|
242
|
-
|
|
|
243
|
-
|
|
|
244
|
-
|
|
|
245
|
-
|
|
|
246
|
-
|
|
|
247
|
-
|
|
|
248
|
-
|
|
|
249
|
-
|
|
|
250
|
-
|
|
|
251
|
-
|
|
|
252
|
-
|
|
|
253
|
-
|
|
|
254
|
-
|
|
|
255
|
-
|
|
|
256
|
-
|
|
|
257
|
-
|
|
|
259
|
+
| icon | string | — | Define any rioglyph icon like "rioglyph-truck". |
|
|
260
|
+
| iconLabelPosition | 'vertical' \| 'horizontal' | 'vertical' | The label position. Possible values are: 'horizontal' or 'vertical'. |
|
|
261
|
+
| iconSize | number | 16 | The icon Size in px. |
|
|
262
|
+
| label | string \| ReactNode | — | Defines the label text. |
|
|
263
|
+
| onClick | MouseEventHandler<{ value: string \| string[] \| number; }> | () => {} | Callback function that is invoked when the radio button is clicked. |
|
|
264
|
+
| onChange | ChangeEventHandler | () => {} | Callback function that is invoked when the radio button is toggled and the state should change (for controlled usage). |
|
|
265
|
+
| checked | boolean | — | Defines whether the radio is checked (for controlled usage). |
|
|
266
|
+
| defaultChecked | boolean | — | Defines whether the radio is initially checked (state can be changed on click). |
|
|
267
|
+
| disabled | boolean | false | Defines whether the checkbox is disabled. |
|
|
268
|
+
| className | string | — | Additional classes to be set on the input element. |
|
|
269
|
+
| inline | boolean | false | Defines whether the radio button is applying an inline style. Use this in combination with other radio buttons. |
|
|
270
|
+
| right | boolean | false | Displays the icon on the right side of the text. |
|
|
271
|
+
| custom | boolean | false | Allows for rendering a completely different layout with or without a radio tick. |
|
|
272
|
+
| name | string | — | Name to be given to the input element. |
|
|
273
|
+
| value | string | — | The value attribute is a string containing the radio button's value but it is never shown to the user. It serves a special purpose for inputs of type radio: when a form is submitted, only radio buttons which are currently checked are submitted, and the reported value is the value of the value attribute. If the value is not otherwise specified, it is the string on by default. This is useful when using native FormData when submitting a form to get the selected radio button value. |
|
|
274
|
+
| tabIndex | number | 0 | The tabindex attribute allows developers to make HTML elements focusable, allow or prevent them from being sequentially focusable (usually with the Tab key, hence the name) and determine their relative ordering for sequential focus navigation. See tabIndex |
|
|
275
|
+
| inputRef | Ref<HTMLInputElement> | — | Ref which is added to the input element. |
|
|
258
276
|
|
|
259
277
|
## RadioButton with FormData
|
|
260
278
|
|
|
@@ -348,23 +366,23 @@ export default () => {
|
|
|
348
366
|
|
|
349
367
|
| Name | Type | Default | Description |
|
|
350
368
|
| --- | --- | --- | --- |
|
|
351
|
-
|
|
|
352
|
-
|
|
|
353
|
-
|
|
|
354
|
-
|
|
|
355
|
-
|
|
|
356
|
-
|
|
|
357
|
-
|
|
|
358
|
-
|
|
|
359
|
-
|
|
|
360
|
-
|
|
|
361
|
-
|
|
|
362
|
-
|
|
|
363
|
-
|
|
|
364
|
-
|
|
|
365
|
-
|
|
|
366
|
-
|
|
|
367
|
-
|
|
|
369
|
+
| icon | string | — | Define any rioglyph icon like "rioglyph-truck". |
|
|
370
|
+
| iconLabelPosition | 'vertical' \| 'horizontal' | 'vertical' | The label position. Possible values are: 'horizontal' or 'vertical'. |
|
|
371
|
+
| iconSize | number | 16 | The icon Size in px. |
|
|
372
|
+
| label | string \| ReactNode | — | Defines the label text. |
|
|
373
|
+
| onClick | MouseEventHandler<{ value: string \| string[] \| number; }> | () => {} | Callback function that is invoked when the radio button is clicked. |
|
|
374
|
+
| onChange | ChangeEventHandler | () => {} | Callback function that is invoked when the radio button is toggled and the state should change (for controlled usage). |
|
|
375
|
+
| checked | boolean | — | Defines whether the radio is checked (for controlled usage). |
|
|
376
|
+
| defaultChecked | boolean | — | Defines whether the radio is initially checked (state can be changed on click). |
|
|
377
|
+
| disabled | boolean | false | Defines whether the checkbox is disabled. |
|
|
378
|
+
| className | string | — | Additional classes to be set on the input element. |
|
|
379
|
+
| inline | boolean | false | Defines whether the radio button is applying an inline style. Use this in combination with other radio buttons. |
|
|
380
|
+
| right | boolean | false | Displays the icon on the right side of the text. |
|
|
381
|
+
| custom | boolean | false | Allows for rendering a completely different layout with or without a radio tick. |
|
|
382
|
+
| name | string | — | Name to be given to the input element. |
|
|
383
|
+
| value | string | — | The value attribute is a string containing the radio button's value but it is never shown to the user. It serves a special purpose for inputs of type radio: when a form is submitted, only radio buttons which are currently checked are submitted, and the reported value is the value of the value attribute. If the value is not otherwise specified, it is the string on by default. This is useful when using native FormData when submitting a form to get the selected radio button value. |
|
|
384
|
+
| tabIndex | number | 0 | The tabindex attribute allows developers to make HTML elements focusable, allow or prevent them from being sequentially focusable (usually with the Tab key, hence the name) and determine their relative ordering for sequential focus navigation. See tabIndex |
|
|
385
|
+
| inputRef | Ref<HTMLInputElement> | — | Ref which is added to the input element. |
|
|
368
386
|
|
|
369
387
|
## Custom cards example
|
|
370
388
|
|
|
@@ -503,23 +521,23 @@ export default () => {
|
|
|
503
521
|
|
|
504
522
|
| Name | Type | Default | Description |
|
|
505
523
|
| --- | --- | --- | --- |
|
|
506
|
-
|
|
|
507
|
-
|
|
|
508
|
-
|
|
|
509
|
-
|
|
|
510
|
-
|
|
|
511
|
-
|
|
|
512
|
-
|
|
|
513
|
-
|
|
|
514
|
-
|
|
|
515
|
-
|
|
|
516
|
-
|
|
|
517
|
-
|
|
|
518
|
-
|
|
|
519
|
-
|
|
|
520
|
-
|
|
|
521
|
-
|
|
|
522
|
-
|
|
|
524
|
+
| icon | string | — | Define any rioglyph icon like "rioglyph-truck". |
|
|
525
|
+
| iconLabelPosition | 'vertical' \| 'horizontal' | 'vertical' | The label position. Possible values are: 'horizontal' or 'vertical'. |
|
|
526
|
+
| iconSize | number | 16 | The icon Size in px. |
|
|
527
|
+
| label | string \| ReactNode | — | Defines the label text. |
|
|
528
|
+
| onClick | MouseEventHandler<{ value: string \| string[] \| number; }> | () => {} | Callback function that is invoked when the radio button is clicked. |
|
|
529
|
+
| onChange | ChangeEventHandler | () => {} | Callback function that is invoked when the radio button is toggled and the state should change (for controlled usage). |
|
|
530
|
+
| checked | boolean | — | Defines whether the radio is checked (for controlled usage). |
|
|
531
|
+
| defaultChecked | boolean | — | Defines whether the radio is initially checked (state can be changed on click). |
|
|
532
|
+
| disabled | boolean | false | Defines whether the checkbox is disabled. |
|
|
533
|
+
| className | string | — | Additional classes to be set on the input element. |
|
|
534
|
+
| inline | boolean | false | Defines whether the radio button is applying an inline style. Use this in combination with other radio buttons. |
|
|
535
|
+
| right | boolean | false | Displays the icon on the right side of the text. |
|
|
536
|
+
| custom | boolean | false | Allows for rendering a completely different layout with or without a radio tick. |
|
|
537
|
+
| name | string | — | Name to be given to the input element. |
|
|
538
|
+
| value | string | — | The value attribute is a string containing the radio button's value but it is never shown to the user. It serves a special purpose for inputs of type radio: when a form is submitted, only radio buttons which are currently checked are submitted, and the reported value is the value of the value attribute. If the value is not otherwise specified, it is the string on by default. This is useful when using native FormData when submitting a form to get the selected radio button value. |
|
|
539
|
+
| tabIndex | number | 0 | The tabindex attribute allows developers to make HTML elements focusable, allow or prevent them from being sequentially focusable (usually with the Tab key, hence the name) and determine their relative ordering for sequential focus navigation. See tabIndex |
|
|
540
|
+
| inputRef | Ref<HTMLInputElement> | — | Ref which is added to the input element. |
|
|
523
541
|
|
|
524
542
|
## Custom stacked example
|
|
525
543
|
|
|
@@ -661,23 +679,23 @@ export default () => {
|
|
|
661
679
|
|
|
662
680
|
| Name | Type | Default | Description |
|
|
663
681
|
| --- | --- | --- | --- |
|
|
664
|
-
|
|
|
665
|
-
|
|
|
666
|
-
|
|
|
667
|
-
|
|
|
668
|
-
|
|
|
669
|
-
|
|
|
670
|
-
|
|
|
671
|
-
|
|
|
672
|
-
|
|
|
673
|
-
|
|
|
674
|
-
|
|
|
675
|
-
|
|
|
676
|
-
|
|
|
677
|
-
|
|
|
678
|
-
|
|
|
679
|
-
|
|
|
680
|
-
|
|
|
682
|
+
| icon | string | — | Define any rioglyph icon like "rioglyph-truck". |
|
|
683
|
+
| iconLabelPosition | 'vertical' \| 'horizontal' | 'vertical' | The label position. Possible values are: 'horizontal' or 'vertical'. |
|
|
684
|
+
| iconSize | number | 16 | The icon Size in px. |
|
|
685
|
+
| label | string \| ReactNode | — | Defines the label text. |
|
|
686
|
+
| onClick | MouseEventHandler<{ value: string \| string[] \| number; }> | () => {} | Callback function that is invoked when the radio button is clicked. |
|
|
687
|
+
| onChange | ChangeEventHandler | () => {} | Callback function that is invoked when the radio button is toggled and the state should change (for controlled usage). |
|
|
688
|
+
| checked | boolean | — | Defines whether the radio is checked (for controlled usage). |
|
|
689
|
+
| defaultChecked | boolean | — | Defines whether the radio is initially checked (state can be changed on click). |
|
|
690
|
+
| disabled | boolean | false | Defines whether the checkbox is disabled. |
|
|
691
|
+
| className | string | — | Additional classes to be set on the input element. |
|
|
692
|
+
| inline | boolean | false | Defines whether the radio button is applying an inline style. Use this in combination with other radio buttons. |
|
|
693
|
+
| right | boolean | false | Displays the icon on the right side of the text. |
|
|
694
|
+
| custom | boolean | false | Allows for rendering a completely different layout with or without a radio tick. |
|
|
695
|
+
| name | string | — | Name to be given to the input element. |
|
|
696
|
+
| value | string | — | The value attribute is a string containing the radio button's value but it is never shown to the user. It serves a special purpose for inputs of type radio: when a form is submitted, only radio buttons which are currently checked are submitted, and the reported value is the value of the value attribute. If the value is not otherwise specified, it is the string on by default. This is useful when using native FormData when submitting a form to get the selected radio button value. |
|
|
697
|
+
| tabIndex | number | 0 | The tabindex attribute allows developers to make HTML elements focusable, allow or prevent them from being sequentially focusable (usually with the Tab key, hence the name) and determine their relative ordering for sequential focus navigation. See tabIndex |
|
|
698
|
+
| inputRef | Ref<HTMLInputElement> | — | Ref which is added to the input element. |
|
|
681
699
|
|
|
682
700
|
## Custom list example
|
|
683
701
|
|
|
@@ -820,23 +838,23 @@ export default () => {
|
|
|
820
838
|
|
|
821
839
|
| Name | Type | Default | Description |
|
|
822
840
|
| --- | --- | --- | --- |
|
|
823
|
-
|
|
|
824
|
-
|
|
|
825
|
-
|
|
|
826
|
-
|
|
|
827
|
-
|
|
|
828
|
-
|
|
|
829
|
-
|
|
|
830
|
-
|
|
|
831
|
-
|
|
|
832
|
-
|
|
|
833
|
-
|
|
|
834
|
-
|
|
|
835
|
-
|
|
|
836
|
-
|
|
|
837
|
-
|
|
|
838
|
-
|
|
|
839
|
-
|
|
|
841
|
+
| icon | string | — | Define any rioglyph icon like "rioglyph-truck". |
|
|
842
|
+
| iconLabelPosition | 'vertical' \| 'horizontal' | 'vertical' | The label position. Possible values are: 'horizontal' or 'vertical'. |
|
|
843
|
+
| iconSize | number | 16 | The icon Size in px. |
|
|
844
|
+
| label | string \| ReactNode | — | Defines the label text. |
|
|
845
|
+
| onClick | MouseEventHandler<{ value: string \| string[] \| number; }> | () => {} | Callback function that is invoked when the radio button is clicked. |
|
|
846
|
+
| onChange | ChangeEventHandler | () => {} | Callback function that is invoked when the radio button is toggled and the state should change (for controlled usage). |
|
|
847
|
+
| checked | boolean | — | Defines whether the radio is checked (for controlled usage). |
|
|
848
|
+
| defaultChecked | boolean | — | Defines whether the radio is initially checked (state can be changed on click). |
|
|
849
|
+
| disabled | boolean | false | Defines whether the checkbox is disabled. |
|
|
850
|
+
| className | string | — | Additional classes to be set on the input element. |
|
|
851
|
+
| inline | boolean | false | Defines whether the radio button is applying an inline style. Use this in combination with other radio buttons. |
|
|
852
|
+
| right | boolean | false | Displays the icon on the right side of the text. |
|
|
853
|
+
| custom | boolean | false | Allows for rendering a completely different layout with or without a radio tick. |
|
|
854
|
+
| name | string | — | Name to be given to the input element. |
|
|
855
|
+
| value | string | — | The value attribute is a string containing the radio button's value but it is never shown to the user. It serves a special purpose for inputs of type radio: when a form is submitted, only radio buttons which are currently checked are submitted, and the reported value is the value of the value attribute. If the value is not otherwise specified, it is the string on by default. This is useful when using native FormData when submitting a form to get the selected radio button value. |
|
|
856
|
+
| tabIndex | number | 0 | The tabindex attribute allows developers to make HTML elements focusable, allow or prevent them from being sequentially focusable (usually with the Tab key, hence the name) and determine their relative ordering for sequential focus navigation. See tabIndex |
|
|
857
|
+
| inputRef | Ref<HTMLInputElement> | — | Ref which is added to the input element. |
|
|
840
858
|
|
|
841
859
|
## Custom example without the tick
|
|
842
860
|
|
|
@@ -955,23 +973,23 @@ export default () => {
|
|
|
955
973
|
|
|
956
974
|
| Name | Type | Default | Description |
|
|
957
975
|
| --- | --- | --- | --- |
|
|
958
|
-
|
|
|
959
|
-
|
|
|
960
|
-
|
|
|
961
|
-
|
|
|
962
|
-
|
|
|
963
|
-
|
|
|
964
|
-
|
|
|
965
|
-
|
|
|
966
|
-
|
|
|
967
|
-
|
|
|
968
|
-
|
|
|
969
|
-
|
|
|
970
|
-
|
|
|
971
|
-
|
|
|
972
|
-
|
|
|
973
|
-
|
|
|
974
|
-
|
|
|
976
|
+
| icon | string | — | Define any rioglyph icon like "rioglyph-truck". |
|
|
977
|
+
| iconLabelPosition | 'vertical' \| 'horizontal' | 'vertical' | The label position. Possible values are: 'horizontal' or 'vertical'. |
|
|
978
|
+
| iconSize | number | 16 | The icon Size in px. |
|
|
979
|
+
| label | string \| ReactNode | — | Defines the label text. |
|
|
980
|
+
| onClick | MouseEventHandler<{ value: string \| string[] \| number; }> | () => {} | Callback function that is invoked when the radio button is clicked. |
|
|
981
|
+
| onChange | ChangeEventHandler | () => {} | Callback function that is invoked when the radio button is toggled and the state should change (for controlled usage). |
|
|
982
|
+
| checked | boolean | — | Defines whether the radio is checked (for controlled usage). |
|
|
983
|
+
| defaultChecked | boolean | — | Defines whether the radio is initially checked (state can be changed on click). |
|
|
984
|
+
| disabled | boolean | false | Defines whether the checkbox is disabled. |
|
|
985
|
+
| className | string | — | Additional classes to be set on the input element. |
|
|
986
|
+
| inline | boolean | false | Defines whether the radio button is applying an inline style. Use this in combination with other radio buttons. |
|
|
987
|
+
| right | boolean | false | Displays the icon on the right side of the text. |
|
|
988
|
+
| custom | boolean | false | Allows for rendering a completely different layout with or without a radio tick. |
|
|
989
|
+
| name | string | — | Name to be given to the input element. |
|
|
990
|
+
| value | string | — | The value attribute is a string containing the radio button's value but it is never shown to the user. It serves a special purpose for inputs of type radio: when a form is submitted, only radio buttons which are currently checked are submitted, and the reported value is the value of the value attribute. If the value is not otherwise specified, it is the string on by default. This is useful when using native FormData when submitting a form to get the selected radio button value. |
|
|
991
|
+
| tabIndex | number | 0 | The tabindex attribute allows developers to make HTML elements focusable, allow or prevent them from being sequentially focusable (usually with the Tab key, hence the name) and determine their relative ordering for sequential focus navigation. See tabIndex |
|
|
992
|
+
| inputRef | Ref<HTMLInputElement> | — | Ref which is added to the input element. |
|
|
975
993
|
|
|
976
994
|
## RadioButton with custom icon
|
|
977
995
|
|
|
@@ -1252,20 +1270,20 @@ export default () => {
|
|
|
1252
1270
|
|
|
1253
1271
|
| Name | Type | Default | Description |
|
|
1254
1272
|
| --- | --- | --- | --- |
|
|
1255
|
-
|
|
|
1256
|
-
|
|
|
1257
|
-
|
|
|
1258
|
-
|
|
|
1259
|
-
|
|
|
1260
|
-
|
|
|
1261
|
-
|
|
|
1262
|
-
|
|
|
1263
|
-
|
|
|
1264
|
-
|
|
|
1265
|
-
|
|
|
1266
|
-
|
|
|
1267
|
-
|
|
|
1268
|
-
|
|
|
1269
|
-
|
|
|
1270
|
-
|
|
|
1271
|
-
|
|
|
1273
|
+
| icon | string | — | Define any rioglyph icon like "rioglyph-truck". |
|
|
1274
|
+
| iconLabelPosition | 'vertical' \| 'horizontal' | 'vertical' | The label position. Possible values are: 'horizontal' or 'vertical'. |
|
|
1275
|
+
| iconSize | number | 16 | The icon Size in px. |
|
|
1276
|
+
| label | string \| ReactNode | — | Defines the label text. |
|
|
1277
|
+
| onClick | MouseEventHandler<{ value: string \| string[] \| number; }> | () => {} | Callback function that is invoked when the radio button is clicked. |
|
|
1278
|
+
| onChange | ChangeEventHandler | () => {} | Callback function that is invoked when the radio button is toggled and the state should change (for controlled usage). |
|
|
1279
|
+
| checked | boolean | — | Defines whether the radio is checked (for controlled usage). |
|
|
1280
|
+
| defaultChecked | boolean | — | Defines whether the radio is initially checked (state can be changed on click). |
|
|
1281
|
+
| disabled | boolean | false | Defines whether the checkbox is disabled. |
|
|
1282
|
+
| className | string | — | Additional classes to be set on the input element. |
|
|
1283
|
+
| inline | boolean | false | Defines whether the radio button is applying an inline style. Use this in combination with other radio buttons. |
|
|
1284
|
+
| right | boolean | false | Displays the icon on the right side of the text. |
|
|
1285
|
+
| custom | boolean | false | Allows for rendering a completely different layout with or without a radio tick. |
|
|
1286
|
+
| name | string | — | Name to be given to the input element. |
|
|
1287
|
+
| value | string | — | The value attribute is a string containing the radio button's value but it is never shown to the user. It serves a special purpose for inputs of type radio: when a form is submitted, only radio buttons which are currently checked are submitted, and the reported value is the value of the value attribute. If the value is not otherwise specified, it is the string on by default. This is useful when using native FormData when submitting a form to get the selected radio button value. |
|
|
1288
|
+
| tabIndex | number | 0 | The tabindex attribute allows developers to make HTML elements focusable, allow or prevent them from being sequentially focusable (usually with the Tab key, hence the name) and determine their relative ordering for sequential focus navigation. See tabIndex |
|
|
1289
|
+
| inputRef | Ref<HTMLInputElement> | — | Ref which is added to the input element. |
|