Component libraryToggle switch

Toggle switch

Pro

Labeled switches for settings and preferences.

npx shadcn@latest add @tidal-pro/toggle-switch
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/toggle-switch

Import components/ui/tidal.css, components/ui/toggle-switch.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

Controlled checked and onCheckedChange; label required. Optional description, rootClassName and native checkbox input props/ref (name, value, required, disabled, id, className, aria-describedby). Visible label and linked help; switch semantics, native Space and form participation. The consumer owns persistence.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.