Toggle switch preview
Labeled switches for settings and preferences.
pro · Forms · primitive
When to use
- Use it when a product interface needs labeled switches for settings and preferences.
- Choose it when the host application can supply the required state and keep business logic outside the presentation component.
Alternatives
- Choose form-field instead when a labeled email field with validation and help text is the actual interface need, rather than toggle switch.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/toggle-switchImport components/ui/tidal.css, components/ui/toggle-switch.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/toggle-switch.css";
import{TidalSwitch}from"./components/ui/toggle-switch";
export default()=><div className="tidal-scope"><TidalSwitch checked={false} label={"Demo"} onCheckedChange={() => {}}/></div>;API and props
TidalSwitch.checked (required)booleanRequired checked value accepted by this exported component.
TidalSwitch.label (required)stringRequired label value accepted by this exported component.
TidalSwitch.onCheckedChange (required)(checked: boolean) => voidCallback invoked when the checked change interaction is proposed.
TidalSwitch.descriptionstring | undefinedOptional description value accepted by this exported component.
TidalSwitch.rootClassNamestring | undefinedOptional root class name value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- The host application owns data, validation, persistence, navigation, and service side effects described by this API.