Skip to main content

Switch

A control that allows the user to toggle between checked and not checked.

PreviewDocs

Features

Binary on/off toggle control

Built with Radix UI Switch primitive

Smooth toggle animation

Keyboard accessible (space to toggle)

Disabled and checked states

Proper label association

Shadcn/ui Switch - Figma Component

A control that allows the user to toggle between checked and not checked. This Figma component is part of our comprehensive design system that brings the popular shadcn/ui library into your design workflow.

Every Switch variant includes all the necessary states, properties, and styling options you need to create consistent, production-ready designs. The component seamlessly integrates with your existing Figma files and maintains full compatibility with the shadcn/ui React implementation.

Your questions, answered

Toggle switches in Figma

The shadcn/ui figma Switch creates instant on/off toggles. Design settings, preferences, and feature toggles in Figma. This shadcn figma component applies changes immediately without form submission.

Switch vs Checkbox

Design Switches in Figma with the shadcn/ui figma component—for immediate effects like dark mode. Prototype settings where Switches work instantly, while Checkboxes require submission, matching shadcn/ui semantics.

Loading states

This shadcn figma Switch supports loading during async operations. Design toggles in Figma that disable during API calls, reverting on failure with clear error feedback.

Accessible toggles

The shadcn/ui figma Switch uses role="switch" and Space key. Design accessible controls in Figma where switches announce state changes to screen readers, following shadcn/ui accessibility standards.