Core / Forms
Switch
Toggles an immediate setting on or off.
Live example
Email notifications
Enabled
Interactive preview using local sample data. Styling is intentionally left to the consuming project.
Usage
<Switch label="Email notifications" />Adopt to your project
Keep this component semantically neutral. Use its documented props for behavior and className for project-specific spacing, width, typography, and visual treatment.
Accessibility
Expose an accessible switch name and state.
API reference
| Public attribute |
|---|
checked |
onChange |
disabled |
label |
The preview above uses a safe local fixture. Confirm exact TypeScript props when adapting it to your application.
Installation
Full library
pnpm install:project /absolute/path/to/your-project
Planned guided selection
Forms → Switch