Chip

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

Props

React props
NameTypeRequiredDefaultDescription
labelstringNo—The label is the text that is displayed on the chip.
transition{ duration?: number; } & TransitionNo—Motion 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.
disabledbooleanNofalseDisables the chip if set to true.
iconIconNo—An optional icon to display in the chip.
selectedbooleanNo—Controlled selected state.
defaultSelectedbooleanNo—Initial selected state when the chip is uncontrolled.
onSelectedChange(selected: boolean) => voidNo—Notifies selection requests in controlled and uncontrolled modes.
onRemove() => voidNo—Requests removal of this chip.
draggablebooleanNofalseEnable native drag and drop on the chip.
editablebooleanNo—Enables inline label editing, used by `Chips` in input mode.
editingbooleanNo—Controlled edition state (the resolved value lives in `states.isEditing`).
onEditStart() => voidNo—Requests editing, for example after a double-click, Enter, or F2.
onEditCommit(nextLabel: string) => voidNo—Commits editing with the normalized label.
onEditCancel() => voidNo—Cancels editing and restores the previous label.
onChange(nextLabel: string) => voidNo—Fires whenever the editable label changes.
hrefstringNo—Navigation destination; switches the chip to a native link.