v 0.0.1-alpha
Components
Documentation
Blog
Blocks
Figma
Search
⌘K
Figma Preview
Early Access
Figma Preview
Early Access
Early Access
Figma Preview
Components
Documentation
Blog
Blocks
Figma
Getting Started
Installation
Fundamentals
Components
Animations
Getting Started
Introduction
Installation
CLI
Figma
Changelog
Installation
Nextjs
Vite
Manual
Fundamentals
Color styles
Typography
Icons
Theme
Components
Accordion
Alert
Alert Dialog
Avatar
Badge
Banner
Breadcrumb
Button
Calendar
Check Box
Code Area
Collapsible
Combobox
Command
Currency Input
Date Picker
Dialog
Divider
Drawer
Dropdown
File Upload
Form
Hover Card
Input
Label
One Time Password Field
Pagination
Password
Phone Number
Popover
Progress
Radio Group
Resizable
Scroll Area
Select
Skeleton
Slider
Sonner
Spinner
Switch
Table
Tabs
Text Area
Tooltip
Animations
Fade
Coming Soon
Infinite Scroll
Coming Soon
Pointer
Coming Soon
components
Switch
Toggle between two states seamlessly
Source Code
Preview
Code
Loading
Installation
CLI
Manual
pnpm
npm
yarn
bun
Usage
Imports
/components/ui/switch
Code
/components/ui/switch
Examples
Size
Preview
Code
Loading
Shape - Square
Preview
Code
Loading
With Icon
Preview
Code
Loading
Disabled
Preview
Code
Loading
On/Off indicator
Preview
Code
Loading
Icon indicator
Preview
Code
Loading
Switch Card
Preview
Code
Loading
Form
Preview
Code
Loading
Props
<Switch>
Name
Default
Values
size
20
20
24
disabled
false
boolean
External Reference
-
-
Spinner
Table