Getting Started
Foundations
Components
Search for a command to run...
Toggle groups provide a compact way to present a set of related options that can be toggled on or off. They support both single and multiple selection modes, making them versatile for various use cases like text formatting toolbars, filter controls, or settings panels.
import { ToggleGroup } from "@strongtie/design-system/toggle-group"This module exports the following components:
ToggleGroupToggleGroupItem<ToggleGroup>| Prop | Type | Default | Description |
|---|---|---|---|
size | "default" | "sm" | "lg" | null | - | |
spacing | number | - | |
variant | "default" | "outline" | null | - |
<ToggleGroupItem>| Prop | Type | Default | Description |
|---|---|---|---|
size | "default" | "sm" | "lg" | null | - | |
variant | "default" | "outline" | null | - |
Components can be styled using the className prop. The design system uses Tailwind CSS for styling.
CSS classes used by this component:
toggle-grouptoggle-group-itemEnsure proper accessibility attributes are added when implementing this component.