Radio
#
Implementation#
DefaultExample
#
ColorExample
#
ValidationExample
#
RequiredExample
#
SizeExample
#
Right-To-Left (rtl)Example
#
PropsAttribute | Type | Value | Default Value | Description |
---|---|---|---|---|
id | string | Matches the label in connection with the radio (htmlFor/id) | ||
size | string | md/lg | md | UI size of Radio and Label |
color | string | danger/default/primary success/warning/invalid | primary | Color of Radio when checked |
invalid | boolean | true/false | Red text for Radio's label | |
disabled | boolean | true/false | Disabled the element from user interaction | |
required | boolean | true/false | Set the Radio as required and update Label UI to required | |
rtl | boolean | true/false | When true, sets element to direction of right-to-left (rtl) | |
labelProps | LabelProps | Pass in props you find useful for the Label component |