#Radio
import Radio from "@poodle/ui/Radio";
Radio
is a component allow the user to select a value from a list of options.
#Simple
Each Radio must have a label for accessibility. We can hide the displayed label by using prop isLabelHidden={true}
#Sizes
Change Radio size via prop sizeStyle
.
Default Radio sizes are s
, m
, l
. If you do not set size, the Radio will use the size m
as default.
#Theming
Please check theming component document here.
export type RadioStyleKeys = "root" | "control" | "input" | "icon" | "label"export interface RadioThemeConfigextends StandardThemeConfig<RadioStyleKeys, RadioProps> {}
#Local Props
Name | Type | Description |
---|---|---|
label * | string | Label of the Radio. |
defaultChecked | boolean | Change Radio default checked. Will override input props defaultChecked . |
isChecked | boolean | Change Radio to checked state when set to true. Will override input props checked . |
isDisabled | boolean | Change Radio icon to disabled state when set to true. Will override input props disabled . |
isLabelHidden | boolean | Hide label when set to true |
#Full Props
export interface RadioPropsextends Omit<CheckControlProps, "checkLabel" | "checkType" | "label">,StandardComponentProps,LocalRadioProps {}