Component <Radio />
Props
Props | Type | Meaning | Possible values |
---|---|---|---|
label | string / node | Add redio label | string or element |
labelPosition | string | Set redio label position | left / right |
color | string | Set checked color | red / blue / turquoise |
customInput | node | Prop for custom input element | element |
States
Examples:
<Radio checked />
<Radio checked={false} />
<Radio checked disabled />
<Radio checked={false} disabled />
Colors
Examples:
<Radio color="red" checked />
<Radio color="blue" checked />
<Radio color="turquoise" checked />
With label
Examples:
<Radio label="Good?" labelPosition="left" checked />
<Radio label="Bad?" labelPosition="right" />
Custom input
Example:
<Radio customInput={<input type="radio" name="radio" checked />} />