Chips help people enter information, make selections, filter content, or trigger actions.
- Element
-
igc-chip
- 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.
Properties
Section titled "Properties"disabled
Section titled "disabled"Whether the chip is disabled.
disabled: boolean = false Defined in src/components/chip/chip.ts:91
outlined
Section titled "outlined"Whether the chip is outlined.
outlined: boolean = false Defined in src/components/chip/chip.ts:109
removable
Section titled "removable"Whether the chip shows a remove control. A disabled chip hides it.
removable: boolean = false Defined in src/components/chip/chip.ts:100
selectable
Section titled "selectable"Whether the chip can be selected.
selectable: boolean = false Defined in src/components/chip/chip.ts:118
selected
Section titled "selected"Whether the chip is selected.
selected: boolean = false Defined in src/components/chip/chip.ts:128
Optional variant
Section titled "variant"The color variant of the chip.
variant: StyleVariant Defined in src/components/chip/chip.ts:136
tagName
Section titled "tagName"The tagName read-only property of the Element interface returns the tag name of the element on which it's called.
tagName: "igc-chip" = 'igc-chip' Defined in src/components/chip/chip.ts:73
Methods
Section titled "Methods"Removes focus from the chip.
blur(): void Defined in src/components/chip/chip.ts:175
Returns void
focus
Section titled "focus"Sets focus on the chip.
focus(options: FocusOptions): void Defined in src/components/chip/chip.ts:168
Parameters
- options:
FocusOptions