Radio Group
A radio group is a collection of radio buttons that are displayed vertically.
API DocumentationImport
import { RadioGroup } from "@aeonkit/react";Usage
Default
Use the RadioGroup component to create a radio group. Use the RadioGroup.Item component to create radio buttons.
<RadioGroup name="city" defaultValue="austin" className="flex-col"> <div className="flex flex-row items-center gap-2"> <RadioGroup.Item id="houston" value="houston" /> <Label htmlFor="houston">Houston</Label> </div> <div className="flex flex-row items-center gap-2"> <RadioGroup.Item id="austin" value="austin" /> <Label htmlFor="austin">Austin</Label> </div> <div className="flex flex-row items-center gap-2"> <RadioGroup.Item id="dallas" value="dallas" /> <Label htmlFor="dallas">Dallas</Label> </div></RadioGroup>Props
API Interface: RadioGroupProps
API Interface: RadioGroupItemProps