Chips help people enter information, make selections, filter content, or trigger actions.

Slots
default — Renders the label of the chip.
prefix — Renders content at the start of the chip, before the default content.
start — Renders content at the start of the chip, before the prefix content.
suffix — Renders content at the end of the chip after the default content.
end — Renders content at the end of the chip, after the suffix content.
select — Renders content while a selectable chip is selected. It replaces the default selected icon.
remove — Renders content that replaces the default remove icon.
CSS Parts
base — The base wrapper of the chip.
action — The selection control of the chip, wrapping the chip content.
content — The wrapper element around the default slot of the chip.
prefix — The prefix container of the chip.
suffix — The suffix container of the chip.
remove — The container of the remove control of the chip.

Whether the chip is disabled.

disabled: boolean
locale: string

Whether the chip is outlined.

outlined: boolean

Whether the chip shows a remove control. A disabled chip hides it.

removable: boolean
resourceStrings: TGet

Whether the chip can be selected.

selectable: boolean

Whether the chip is selected.

selected: boolean

The color variant of the chip.

variant: StyleVariant | undefined

Removes focus from the chip.

blur(): void

Returns void

Sets focus on the chip.

focus(options: FocusOptions): void

Parameters

  • options: FocusOptions

Returns void

Emitted when the user activates the remove control. The chip does not remove itself.

onRemove(args: CustomEvent<void>): void

Parameters

Returns void

Emitted when the user selects or deselects the chip. The detail is the new selected state.

onSelect(args: CustomEvent<boolean>): void

Parameters

Returns void