sigilUI

Toggle Group

Group related toggle buttons with shared selection behavior.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { ToggleGroup, ToggleGroupItem } from "@sigil-ui/components";

Usage

<ToggleGroup type="single">
    <ToggleGroupItem value="a">A</ToggleGroupItem>
    <ToggleGroupItem value="b">B</ToggleGroupItem>
    <ToggleGroupItem value="c">C</ToggleGroupItem>
  </ToggleGroup>

Sub-components

This component includes the following parts:

  • <ToggleGroupItem>

Props

PropTypeDefaultDescription
type"single" | "multiple"—Selection mode.
size"sm" | "md" | "lg"mdToggle size applied to all items.
valuestring | string[]——
defaultValuestring | string[]——
onValueChange(value: string | string[]) => void——
disabledboolean——

Token integration

CSS VariablePurpose
--s-radius-mdRadius md
--s-border-styleBorder style
--s-borderBorder
--s-text-secondaryText secondary
--s-duration-fastDuration fast
--s-surface-elevatedSurface elevated
--s-ringRing
--s-primaryPrimary
--s-surfaceSurface
--s-textText