Toggle Group

A set of toggle buttons where a single option stays selected at a time.

Warning

This component is experimental and not yet stable for wide adoption. Use it with caution. Refer to the _stories.tsx file for detailed usage examples.

Installation

Import the ToggleGroup component:

import { ToggleGroup } from "@o/pipeline/experimental/components/toggle-group";

Usage

Text-only

Icon-only

iconStart

iconEnd

skeleton

skeleton on ToggleGroup.Root fills the whole group’s shape with one placeholder while its options or value are loading, and makes it inert. Its items take no skeleton of their own. Inside a loading SkeletonGroup it is on by default; see Skeleton.

disabled

disable Item