Genesis
@beta

ChipGroup

ChipGroup — filter chips that toggle together: the twin of genesis-ui-native's NativeChipGroup, with the same `mode` (default `multiple`), `value` and `onChange`; `onChange` gets a string in `single` mode and a list in `multiple`. It is Radix's ToggleGroup, as genesis-ui's ToggleGroup is: one tab stop, the arrow keys move between chips, Enter and Space toggle. Each `ChipGroupItem` draws the resource workspace's Chip, ringed while it is on.

packages/ui/src/components/resource/chip-group.tsx

Import
Subpath export: @marktiderman/genesis-ui
import { ChipGroup } from "@marktiderman/genesis-ui";
Components
Auto-generated from TypeScript source via react-docgen-typescript.

ChipGroup

ChipGroup — filter chips that toggle together: the twin of genesis-ui-native's NativeChipGroup, with the same `mode` (default `multiple`), `value` and `onChange`; `onChange` gets a string in `single` mode and a list in `multiple`. It is Radix's ToggleGroup, as genesis-ui's ToggleGroup is: one tab stop, the arrow keys move between chips, Enter and Space toggle. Each `ChipGroupItem` draws the resource workspace's Chip, ringed while it is on.

PropTypeDefaultDescription
onChange*((value: string[]) => void) | ((value: string) => void)—
value*string | readonly string[]—
allowEmptyboolean—Pressing the chosen chip clears it (`onChange("")`). Default false: one stays chosen.
aria-labelstring—What the chips choose, for screen readers ("Filter by level").
classNamestring—
disabledboolean—
modeenum—
testIDstring—

ChipGroupItem

One chip of a ChipGroup: the group's toggle item, drawn as the Chip.

PropTypeDefaultDescription
value*string—
classNamestring—
iconReactNode—
testIDstring—
Storybook
Storybook hosts the canonical visual reference with controls for every variant.