The Radio component can be used by importing { Radio } from "finallyreact"
Prop Name | Prop Type | Description |
---|---|---|
allowUnselect | boolean | Allow unselecting a radio option (default true) |
color | string | Any FinallyReact color |
disabled | boolean | Disables user interaction |
initialValue | string | Default value of the radio |
inputProps | HTMLAttributes | Props for the radio input |
labelProps | HTMLAttributes | Props for the label |
multiSelect | boolean | Enable multi-option select |
name | string | Optional identifier for the radio |
options | object[] | Options for the radio |
options[].disabled | boolean | Disables the option |
options[].label | string | Label of the option |
options[].value | any | Value of the option |
simple | boolean | Renders a simple radio |
size | 'sm' | 'md' | 'lg' | Size of the radio |
value | any | Value of the radio |