Toggle switches for boolean values
Interactive preview of the Switch component with different variants.
Install the package via npm:
npm install apex-design-systemimport { Switch, Label } from 'apex-design-system';<div className="flex items-center gap-2">
<Switch id="notifications" />
<Label htmlFor="notifications">Enable notifications</Label>
</div>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.