Label
A category a team makes, a name and a colour: the hue in a dot, in a hairline frame with no ground of its own.
import { Label, HuePicker } from "@arcadia/ui"BugDesignBackendBillingOnboardingCustomerChore
TSX
Examples
Label
hue- LabelHueDefault "none"
- Its colour, one of
LABEL_HUESby id, ornone. dotOnly- booleanDefault false
- The dot alone, where the room has gone: the name is its accessible name and its hint.
onRemove- () => void
- Renders a trailing
xsIconButton in the chip's ink. removeLabel- stringDefault "Remove"
- The remove button's label and tooltip.
removeHint- ReactNode
- Extra tooltip line for the remove button, e.g. the shortcut's effect.
rootStyle- ChipStyle
- Typed StyleX override: where the chip sits and its
--chip-*knobs. childrenrequired- string
- Its name.
className- string
- A product's hook class, retiring: new code uses
rootStyle(ui.lintkit-classnamecounts the rest).
Rest props go to <span> props and render.
valuerequired- LabelHue
- The hue chosen.
onChangerequired- (hue: LabelHue) => void
size- "sm" | "md" | "lg"Default "sm"
rootStyle- RootStyle
- Typed StyleX override: where the row sits.
Rest props go to <div> props.