Radio
Radio composes Ariakit's radio component. A
Single Radio doesn't make sense without RadioGroup
.
Imports
import {
Radio,
RadioDescription,
RadioIcon,
RadioInput,
RadioLabel,
RadioText,
RadioTextWrapper,
} from "@adaptui/react-tailwind";
💡
A complex component that supports customization as per the composition guide.
Usage
Radio sizes
Sizes can be set using the size
prop. The default size is md
. The available
sizes are: sm
md
lg
Radio UI states
Radio can be controlled using state
prop.
Radio Disabled states
Radio Label & Description
API Reference
Prop | Type | Default |
---|---|---|
size | union | md |
disabled | boolean | false |
isChecked | boolean | false |
label | React.ReactNode | - |
description | React.ReactNode | - |
icon | React.ReactNode | - |
Last updated on July 27, 2022