Single choice from multiple options
Interactive preview of the Radio component with different variants.
Install the package via npm:
npm install apex-design-systemimport { RadioGroup, Radio, Label } from 'apex-design-system';<RadioGroup defaultValue="option1">
<div className="flex items-center gap-2">
<Radio value="option1" id="r1" />
<Label htmlFor="r1">Option 1</Label>
</div>
<div className="flex items-center gap-2">
<Radio value="option2" id="r2" />
<Label htmlFor="r2">Option 2</Label>
</div>
</RadioGroup>This component follows WAI-ARIA best practices and is WCAG 2.1 AA compliant. It includes proper keyboard navigation, focus management, and screen reader support.