Saturation UIsaturation UI
DocsComponentsBlocks
⌘K

Getting Started

IntroductionInstallationTheming

Components

AccordionAI Chat InputAlertAnimated GroupAnimated NumberAvatarBadgeBorder TrailBreadcrumbButtonButton GroupCalendarCardChartCheckboxCollapsibleComboboxCommandContext MenuData TableDate PickerDialogDropdown MenuEmptyFieldGlow EffectInputInput GroupItemKbdMenubarNovel EditorPaginationProgressive BlurProgressSelectSheetSkeletonSonnerSpinnerSpotlightSwitchTableTabsText EffectText ShimmerTextareaToggleToggle GroupTreeTypography
Components
/
Switch

Switch

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

Preview

Installation

npx shadcn@latest add https://ui.saturation.io/r/switch.json

Usage

import { Switch } from "@/components/ui/switch"

<Switch />

Examples

Sizes

Disabled

API Reference

Switch

Extends Radix UI Switch primitive with size variants and animated stretching effect.

size - "sm" | "default" | "lg"

On This Page

  • Preview
  • Installation
  • Usage
  • Examples
  • API Reference

Deploy your Saturation UI app

Build beautiful, saturated interfaces with our component library.

Deploy to Vercel for the best performance and developer experience.