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-uiimport { 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`.
| Prop | Type | Default | Description |
|---|---|---|---|
| tone* | enum | — | |
| className | string | — | |
| disabled | boolean | — | A pressable chip that can't be pressed now. |
| icon | ReactNode | — | |
| onSelectedChange | ((selected: boolean) => void) | — | Makes the chip pressable: called with the new state when it is pressed. |
| selected | boolean | — | 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. |
| testID | string | — |