Shadcn/ui Toggle - Figma Component
A two-state button that can be either on or off. This Figma component is part of our comprehensive design system that brings the popular shadcn/ui library into your design workflow.
Every Toggle 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.
Features
- Two-state button (pressed/unpressed)
- Built with Radix UI Toggle primitive
- Icon or text content
- Pressed and disabled states
- Keyboard accessible
- Works standalone or in Toggle Groups
Browse all 56 components
- Accordion5 variants
- Alert Dialog5 variants
- Alert4 variants
- Aspect Ratio2 variants
- Avatar8 variants
- Badge5 variants
- Breadcrumb5 variants
- Button Group10 variants
- Button13 variants
- Calendar9 variants
- Card4 variants
- Carousel5 variants
- Chart6 variants
- Checkbox6 variants
- Collapsible3 variants
- Combobox10 variants
- Command4 variants
- Context Menu8 variants
- Data Table1 variant
- Date Picker6 variants
- Dialog4 variants
- Direction1 variant
- Drawer3 variants
- Dropdown Menu11 variants
- Empty5 variants
- Field11 variants
- Hover Card2 variants
- Input Group12 variants
- Input OTP8 variants
- Input13 variants
- Item9 variants
- Kbd4 variants
- Label1 variant
- Menubar4 variants
- Navigation Menu1 variant
- Pagination2 variants
- Popover3 variants
- Progress2 variants
- Radio Group5 variants
- Resizable2 variants
- Scroll Area1 variant
- Select5 variants
- Separator3 variants
- Sheet2 variants
- Sidebar1 variant
- Skeleton5 variants
- Slider5 variants
- Sonner3 variants
- Spinner6 variants
- Switch5 variants
- Table2 variants
- Tabs4 variants
- Textarea4 variants
- Toggle Group6 variants
- Toggle4 variants
- Tooltip3 variants
Toggle buttons in Figma
The shadcn/ui figma Toggle creates two-state button controls. Design formatting (bold, italic), favorites, and view options in Figma. This shadcn figma component provides button-like pressed/unpressed interactions.
Pressed visual feedback
Design Toggles in Figma with the shadcn/ui figma component—clear pressed state with background or border changes. Prototype toolbars where pressed toggles are immediately distinguishable, matching shadcn/ui visual feedback.
Icon toggles
This shadcn figma Toggle supports icon swapping (☆ to ★ for favorite). Design icon-based toggles in Figma with tooltips explaining function, creating self-documenting toolbar controls.
Accessible toggles
The shadcn/ui figma Toggle uses role="button" with aria-pressed. Design accessible controls in Figma where toggles announce pressed/unpressed states, following shadcn/ui accessibility standards with Space/Enter keys.
Your questions, answered
Common questions about the Toggle component in the shadcn/ui Figma kit.
Toggle buttons are for toolbar/formatting actions (bold text, favorite item). Switches are for settings with instant effect (dark mode). Checkboxes are for form selections. Toggle looks like a button, Switch like a slider, Checkbox like a check box.
Use for formatting controls (bold, italic), view options (show/hide panel), or item state (favorite, bookmark). Toggles work well in toolbars and contexts where button-like appearance matches the interaction pattern better than switches or checkboxes.
Yes, either visible text, icons with tooltips, or aria-label for screen readers. Users need to understand what the toggle does. Icon-only toggles save space but require universal icons or tooltips for clarity.
Standard Toggles are binary, but you can style tri-state toggles for use cases like "select all" checkboxes (all, some, none selected). Keep it simple—most toggles should be clearly on or off for predictable behavior.
Usually no—Toggles imply instant, reversible actions. For destructive or important actions, use a Button with confirmation Dialog instead. Toggles should feel safe to experiment with, knowing effects are immediate and reversible.
Yes, this Figma Toggle component matches the shadcn/ui implementation exactly, ensuring your toggle buttons work consistently from design to production with proper pressed states and accessibility.