Whether this chip is the active selection (filter idiom).
onClick
() => void
n/a
Toggle/tap handler. Ignored while disabled.
disabled
boolean
false
Inert + clearly-seen (never invisible) state.
leadingIcon
string
n/a
Optional leading glyph (e.g. a status dot) before the label.
swatch
string
n/a
A per-item COLOR swatch dot before the label (e.g. a chart series color). Unlike leadingIcon='dot' (which inherits the chip's currentColor), this paints an arbitrary fixed color, so a row of chips can each carry a distinct key color.
onRemove
() => void
n/a
When set, renders a trailing x; invoked when it is pressed (input idiom).
token
boolean
false
TOKEN mode: render the chip as a NON-interactive <span> container (NOT a <button>), so a removable token can sit INSIDE another interactive element (e.g. a MultiSelect trigger <button>) without nesting a real <button> (the React #418 nested-button hydration bug fixed in Wave 1). The removable x stays its own span[role=button] control (a span, never a nested <button>). A token is a static tag + a remove, not a toggle, so selected / onClick / aria-pressed do not apply in this mode.
Also accepts the native <button> attributes (e.g. onClick, disabled, id, aria-*, data-*), forwarded straight through, plus a forwarded ref.
Parameter
Type
Default
Description
text *
String
n/a
The chip label. Rendered with NockerlControlTextStyle.
onClick *
() -> Unit
n/a
Invoked on tap. No-op while enabled = false.
modifier
Modifier
Modifier
Outer modifier (size, weight, alignment).
selected
Boolean
false
Whether this chip is the active selection: true → solid accentPrimary fill + contrast label; false → accentPrimarySoft tint + cyan label.
enabled
Boolean
true
When false, the chip is dimmed (alpha) and non-interactive.
contentPadding
PaddingValues
horizontal 14.dp, vertical 8.dp
Inner padding, a compact keycap padding by default.
leadingContent
(@Composable -> Unit)?
null
Optional content (e.g. a status dot) before the label.
The published NockerlChip is a View in the selectable (filter) idiom, matching
Compose. selected toggles the accent wash (accentPrimarySoft fill + cyan label when on).
It has no leading slot and no onRemove; honor .disabled(_:) for the dimmed state.
Parameter
Type
Default
Description
text *
String
n/a
The chip label (the leading unlabeled argument). Rendered at 12pt medium.
selected
Bool
false
Whether this chip is the active selection: true → accentPrimarySoft fill + cyan label; false → cardSurface1 fill + on-card label.