ToggleGroup
A ToggleGroup component from the Sigil design system.
Import
import { ToggleGroup, ToggleGroupItem } from "@sigil-ui/components";Preview
Usage
<ToggleGroup>...</ToggleGroup>Sub-components
This component includes the following parts:
<ToggleGroupItem>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
type | `"single" | "multiple"` | — |
size | `"sm" | "md" | "lg"` |
value | `string | string[]` | — |
defaultValue | `string | string[]` | — |
onValueChange | `(value: string | string[]) => void` | — |
disabled | boolean | — | — |
Token integration
| CSS Variable | Purpose |
|---|---|
--s-radius-md | Radius md |
--s-border-style | Border style |
--s-border | Border |
--s-text-secondary | Text secondary |
--s-duration-fast | Duration fast |
--s-surface-elevated | Surface elevated |
--s-ring | Ring |
--s-primary | Primary |
--s-surface | Surface |
--s-text | Text |