import { Toggle } from '@base-ui/react/toggle'; import { ToggleGroup as BaseToggleGroup } from '@base-ui/react/toggle-group'; import { type VariantProps } from 'class-variance-authority'; import * as React from 'react'; /** * A set of toggle buttons that share one selection. * * Base UI 1.6.0 ships both halves — `@base-ui/react/toggle-group` and `@base-ui/react/toggle` — and * neither was used by Strix. **They are two single components rather than one namespace of parts**, * which is worth stating because every other Base UI primitive here is `X.Root`/`X.Item`: * `Object.keys(ToggleGroup)` is `['$$typeof', 'render']`, so `ToggleGroup.Item` is `undefined` and * would render as a component named `undefined` with no error naming the cause. * * Eight behaviours, every one read off the DOM rather than the prose (skill 5), and **four of them * differ from `Toolbar`**, which is the primitive `ButtonGroup` wraps and the obvious thing to * assume this matches: * * 1. the root is `
` — a `group`, not a `toolbar`, so it * needs its own accessible name for the same reason * 2. items are `