Radio
A radio button for selecting one option from a group.
Preview
Props
| Prop | Type | Default | Description |
|---|---|---|---|
name | string | — | Group name |
value | string | — | Radio value |
checked | boolean | false | Checked state |
label | string | — | Label text |
onChange | function | — | Change handler |
Usage
const { Radio } = window.ColorSnap;
ReactDOM.createRoot(document.getElementById('root')).render(
React.createElement(Radio, { name: 'plan', value: 'free', label: 'Free' })
);