Form

Switch

Accessible Radix toggle switch for binary preferences.

Preview

Installation

npm install @ifreebuddy/budui

Usage

import { Switch, Label } from "@ifreebuddy/budui";

<div className="flex items-center gap-2">
  <Switch id="notify" />
  <Label htmlFor="notify">Notifications</Label>
</div>

Accessibility

Built on top of Radix UI primitives. Fully compliant with WAI-ARIA guidelines, supporting full keyboard navigation (Tab, Enter, Space, Escape, Arrow Keys), focus indicators, and screen reader announcements.