Chip

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

Props

React props
NameTypeRequiredDefaultDescription
labelstringNoThe label is the text that is displayed on the chip.
classNamestring | Partial<Record<"label" | "stateLayer" | "leadingIcon" | "trailingIcon" | "chip", string>> | ClassNameComponent<ChipInterface>NoRoot classes (string), static element classes (object), or state-aware element classes (function).
disabledbooleanNofalseDisables the chip if set to true.
draggablebooleanNofalseEnable native drag and drop on the chip.
onChange(nextLabel: string) => voidNoFires whenever the editable label changes.
transition{ duration?: number; } & TransitionNoMotion timing for the selection colour change. Defaults to 0.3s. It lived only on the React adapter, so the Angular chip's selection snapped where React's faded.
variantChipVariantNo'outlined'The chip variant determines the style.
iconIconNoAn optional icon to display in the chip.
selectedbooleanNoControlled selected state.
defaultSelectedbooleanNoInitial selected state when the chip is uncontrolled.
onSelectedChange(selected: boolean) => voidNoNotifies selection requests in controlled and uncontrolled modes.
onRemove() => voidNoRequests removal of this chip.
hrefstringNoOptional navigation target.
editablebooleanNoEnables inline label editing, used by `Chips` in input mode.
editingbooleanNoControlled edition state (the resolved value lives in `states.isEditing`).
onEditStart() => voidNoRequests editing, for example after a double-click, Enter, or F2.
onEditCommit(nextLabel: string) => voidNoCommits editing with the normalized label.
onEditCancel() => voidNoCancels editing and restores the previous label.