Toggle group preview
Choose one or several compact modes with pressed buttons and roving keyboard focus.
pro · Essentials · primitive
When to use
- Use it when a product interface needs choose one or several compact modes with pressed buttons and roving keyboard focus.
- Choose it when the host application can supply the required state and keep business logic outside the presentation component.
Alternatives
- Choose tidal-button instead when press, loading, success and disabled states is the actual interface need, rather than toggle group.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/toggle-groupImport components/ui/tidal.css, components/ui/toggle-group.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/toggle-group.css";
import{TidalToggleGroup}from"./components/ui/toggle-group";
export default()=><div className="tidal-scope"><TidalToggleGroup label="View" items={[{ id: "list", value: "list", label: "List" }]} type="single" value="list" onValueChange={() => {}}/></div>;API and props
TidalToggleGroup.items (required)ReadonlyArray<TidalToggleGroupItem>Required items value accepted by this exported component.
TidalToggleGroup.label (required)stringRequired label value accepted by this exported component.
TidalToggleGroup.onValueChange (required)((value: string | null) => void) | ((value: string[]) => void)Callback invoked when the value change interaction is proposed.
TidalToggleGroup.type (required)"multiple" | "single"Required type value accepted by this exported component.
TidalToggleGroup.value (required)string | ReadonlyArray<string> | nullRequired value value accepted by this exported component.
TidalToggleGroup.dir"ltr" | "rtl" | undefinedOptional dir value accepted by this exported component.
TidalToggleGroup.disabledboolean | undefinedOptional disabled value accepted by this exported component.
TidalToggleGroup.orientation"horizontal" | "vertical" | undefinedOptional orientation value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- Install the declared registry dependencies and render inside a tidal-scope with the foundation stylesheet loaded.