Toggle Group | CombricSkip to content

Toggle Group

Combric

Single or multiple pressable tool-state grouping.

@combric/react · v1.1.1 · Current

Import and usage

import { ToggleGroup, ToggleGroupItem } from "@combric/react";

Load the native stylesheet with @import "@combric/react/css";. This path does not require Tailwind.

Examples

Single-select toggle group

Multiple selection

Vertical orientation

Public API

Public exports
Name
ToggleGroup
ToggleGroupItem
Documented contracts
Property / capabilityPublished contract
typesingle | multiple
Contractvalue/defaultValue
orientationhorizontal | vertical

Accessibility

Groups toggle buttons without replacing native radio semantics when a form value is required.

Keyboard

Arrow keys move focus by orientation; Home and End move to boundaries without selecting.

CSS and customization

Combric classes and canonical --combric-* variables provide the package presentation. Consumer className extends the required class; it does not replace the component contract.

Source

View source on GitHub