All components

Switch

On/off toggles with a sliding thumb in solid and raised track variants.

Variants

solid
raised

Sizes

xs
sm
md
lg

Install

Source

components/ui/ui-sdk/switch.tsx

Examples

Installable blocks built with Switch — real use cases, delivered as source you own.

Model Picker

Settings menu for choosing an inference model — Fast switch, Effort submenu, and a searchable combobox for the model list.

Comparison Table

Transposed side-by-side vector database evaluation matrix with a sticky criteria label column, collapsible grouped rows, interactive column swapping and adding/removing, baseline pinning with relative deltas, best-in-row highlights, differences-only filtering, score bars, 30-day uptime telemetry, and a live recommendation footer.

Documentation Design

Design-system component reference article featuring breadcrumb navigation, stability metadata badges, sticky scroll-spy table of contents, an interactive playground with live controls and synchronized JSX output, paired Do / Don't visual specimens, filterable API props table, copyable usage recipes, keyboard & ARIA contracts, and helpfulness feedback footer.

Two-Column Form

Responsive two-column vendor onboarding and payout profile form with sectioned Fieldset cards, paired field grids, live inline validation, dirty-state tracking, settlement cadence controls, Reset and Save footer actions, and Toaster confirmation feedback.

Form Wizard

Four-step cloud workspace onboarding wizard with a pinned horizontal stepper, per-step validation on advance, plan tier radio cards, live monthly cost estimate, optional skippable team setup, editable review cards, and local launch confirmation.

Dialog Wizard

Three-step scheduled backup policy wizard inside a modal Dialog over a live Arbor Cloud workspace. Features a pinned title and compact stepper header, scrollable per-step validation for target cluster, region, cadence, retention, replication, and KMS encryption, a pinned Back/Continue/Create footer, and live host table updates with toast confirmation.

Inline Wizard

Single-column accordion-style inline wizard for custom domain and TLS provisioning, featuring compact summary rows with inline Edit/Re-run actions, downstream stale invalidation, a self-running nested DNS preflight check stepper with mismatch simulation and retry recovery, and live cutover activation.

Vertical Wizard

Five-step enterprise SSO and workspace provisioning wizard with a persistent vertical stepper rail, live per-step statuses and summary subtitles, overall progress indicator, draft save tracking, conditional protocol and SIEM fields, broken-step validation flagging, container-responsive top bar collapse, and grouped review and confirmation screens.

Settings Dialog

Two-pane desktop preferences modal with a categorized navigation rail, keyboard-navigable live settings search, responsive container-query collapse, accent swatch and scale controls, connected app toggles, shortcut bindings, quota progress meters, and a docked dirty-state save bar.

Settings Form

Account and workspace preferences page with quick-jump settings search, responsive sidebar-to-tabs navigation, profile details, timezone and appearance controls, notification switches, password and security options, dirty-state detection, and Save / Reset actions.

Settings Panels

Multi-section workspace settings layout with grouped sidebar navigation, responsive mobile tabs, a sticky dirty-state save bar, API token management, session controls, and team billing quotas.

Shell Nav

Application shell pairing a top navigation bar (workspace switcher, command search dialog, notifications popover, account menu) with a collapsible left sidebar, mobile slide-over drawer, and interactive cloud deployment views.

Side Nav Shell

Left-rail application shell pairing a full-height collapsible sidebar (workspace switcher, quick actions, grouped route navigation, collapsible pinned collections with row menus, and user footer menu) with a mobile drawer fallback and interactive creative workspace views.

Top Nav Shell

Top-navigation application shell with a centered horizontal Navbar (brand mark, route links, ⌘K command search dialog, notifications popover, account menu), mobile slide-over drawer fallback, and interactive public & internal operations views.

Theme Showcase

Interactive design-system and token workbench featuring scoped accent, density, and corner-radius live preview controls over a responsive 3-column bento of cohesive UI SDK cards.