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

  • Renders content in the default slot of the chip.

prefix - Renders content at the start of the chip, before the default content.

suffix - Renders content at the end of the chip after the default content.

select - Content to render when the chip in selected state.

remove - Content to override the default remove chip icon.

base - The base wrapper of the chip.

prefix - The prefix container of the chip.

suffix - The suffix container of the chip.

Callable

  • Returns ReactNode

Events

onRemove: (args: CustomEvent<boolean>) => void

Emits an event when the chip component is removed. Returns the removed chip component.

Type declaration

onSelect: (args: CustomEvent<boolean>) => void

Emits event when the chip component is selected/deselected and any related animations and transitions also end.

Type declaration

Properties

disabled: boolean

Sets the disabled state for the chip.

removable: boolean

Defines if the chip is removable or not.

selectable: boolean

Defines if the chip is selectable or not.

selected: boolean

Defines if the chip is selected or not.

variant: StyleVariant

A property that sets the color variant of the chip component.