Switch
Toggle switch for binary options
Preview
Interactive preview of the Switch component
Usage Guidelines
When to use
- Use switch components when you need to display or organize content
- Consider using switch for structured content presentation
Best practices
- Maintain consistent styling across similar switch components
- Ensure proper labeling and accessibility attributes
- Use appropriate variants for different contexts and purposes
Accessibility
The Switch component follows accessibility best practices:
- Uses semantic HTML elements when appropriate
- Supports keyboard navigation
- Includes proper ARIA attributes
- Maintains sufficient color contrast
Used On Pages
The Switch component is used on the following pages: