Component
Radio Group
Let people choose exactly one option from a visible set, with arrow-key navigation and optional supporting copy.
Interactive preview
Usage
Import the component entry and start with its smallest complete example.
Import
import { RadioGroup } from "@chitrank2050/monoline-ui/radio-group"Basic usage
<RadioGroup value={plan} onValueChange={setPlan} aria-label="Billing cycle">
<RadioGroup.Item value="monthly" label="Monthly" />
<RadioGroup.Item value="annual" label="Annual" description="Save two months" />
</RadioGroup>Usage guidance
Choose the component for its interaction model and semantics before customizing its appearance.
RadioGroup presents a visible set of mutually exclusive choices where comparing options before selection is useful.
People may select several options, or a long option list would be easier to scan in a compact Select.
RadioGroup provides radio roles and arrow-key navigation. Give the group an accessible label and use each item's label prop or an explicitly associated label.
This component needs browser JavaScript for state or browser APIs.
API reference
Props, slots, and callbacks available on this component.
Design tokens
Theme variables this component reads for color, spacing, and motion.
Implementation
The source used by the example above, including any state it needs.
<RadioGroup value={plan} onValueChange={setPlan} aria-label="Billing cycle">
<RadioGroup.Item value="monthly" label="Monthly" />
<RadioGroup.Item value="annual" label="Annual" description="Save two months" />
</RadioGroup>Related documentation
Compare related components or review the package and theme setup.