Radio
A basic Radio component. This is primarily used in conjuction with the Row component.
Component render
<Radio
onChange={(value) => console.log(value)}
selected
/>
Properties
Property | Type | Description |
---|---|---|
disabled | boolean | Whether the radio button is disabled. |
invalid | boolean | Whether the radio button is invalid. |
onChange | (value: { current: boolean; previous: boolean; }) => void | This event listener runs whenever the radio value changes. |
selected | boolean | Whether the radio button is selected (analogous to the HTML input attribute checked ). If used as a slotted control inside of market-row , this will be overridden by the row’s selected property. |
slot | string | An optional slot attribute that can be added to the component. Certain components require the slot attribute to properly place it. |