Genesis
@stable

Chip

A small status chip in one of the resource workspace's tones (tinted, AA-safe Genesis badges). With `onSelectedChange` it is a filter chip that toggles `selected`.

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

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

Chip

A small status chip in one of the resource workspace's tones (tinted, AA-safe Genesis badges). With `onSelectedChange` it is a filter chip that toggles `selected`.

PropTypeDefaultDescription
tone*enum—
classNamestring—
disabledboolean—A pressable chip that can't be pressed now.
iconReactNode—
onSelectedChange((selected: boolean) => void)—Makes the chip pressable: called with the new state when it is pressed.
selectedboolean—On or off, as `NativeChip` in a `NativeChipGroup`: with `onSelectedChange` the chip is a toggle button (`aria-pressed`, Enter and Space), drawn with a ring while on.
testIDstring—
Storybook
Storybook hosts the canonical visual reference with controls for every variant.