SelectCard API
API reference docs for theSelectCard
component. For examples and details on the usage of this component, visit the component demo page.
Props
Prop | Type | Description | Default |
---|---|---|---|
|
| The type of input element to render in each card. |
|
|
| Makes all cards in the group disabled. The checkbox / radio will be announced as disabled to screen-readers and styled to signify this. |
|
|
| The text description of the fieldset element. Renders the passed ReactNode as the first child of the fieldset, inside a | _ |
|
| Callback to be called when the selected card(s) state changes. | _ |
|
| An array of options(objects) to be rendered. | _ |
|
| Indicates whether the element's orientation is horizontal, vertical. |
|
|
| The value(s) of the selected card(s). | _ |
Note: For SelectCardOptionProps
object please refer to the table below.
Prop | Type | Description | Default |
---|---|---|---|
|
| Defines an identifier (ID) which must be unique. |
|
|
| Block of component to display after Radio or Checkbox, in same flex row. | _ |
|
| The Block of component to display below CardRow, will be visible only when option is checked. | _ |
|
| When true, the checkbox / radio will be announced as disabled to screen-readers and styled to signify this. | _ |
|
| The name of the option. Forwarded to CheckBox or Radio input internally. | _ |
|
| Pass css |
|
|
| The value of the option. Forwarded to CheckBox or Radio input internally. | _ |