Radio
Displays a form input field or a component that looks like an input field.
Installation
CLI
Copy & Paste
npx @sly-cli/sly add draft-ui radio
Examples
Warning
Radio
is a primitive component, it is not meant to be used on it's own. It must be wrapped in a RadioGroup
.
Default
The default Radio
uses size md
.
Example
Code
Sizes
You can use the size
prop to alter the Radio
size. Sizes sm
, md
, and lg
are included by default.
Example
Code
Disabled
Use the isDisabled
prop to make an individual Radio
disabled.
Example
Code