RadioCards
RadioCards
jsx
import RadioCards from '@semcore/ui/radio-cards';
<RadioCards />;NSRadioCards.Props
& & {...}| Name | Type | Description |
|---|---|---|
| name | string | Radio cards group name. |
| defaultValue | Default selected radio card value. | |
| value | Currently selected radio card value. | |
| onChange | (value: , event: ) => void | Called when the selected radio card changes. |
| disabled | boolean | Disables the entire radio group and all radio cards. |
RadioCards.Item
jsx
import RadioCards from '@semcore/ui/radio-cards';
<RadioCards.Item />;NSRadioCards.Item.Props
& {...}| Name | Type | Description |
|---|---|---|
| disabled | boolean | Disables radio card. |
| iconAddon | Optional icon displayed before the content. | |
| text | string | Optional text displayed in the header. |
| value | Unique value associated with the radio card. | |
| textAddon | string | Additional text displayed in the header. |
| description | string | Description displayed below the header. |
| dot | string | Shows a dot indicator with the specified accessible label. |
| loading | boolean | Shows a skeleton instead of text addon. |