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

Element
igc-chip
Slots
default — 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.
CSS Parts
base — The base wrapper of the chip.
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.

IgcChipComponent

new IgcChipComponent(): IgcChipComponent

Defined in src/components/chip/chip.ts:132

Returns IgcChipComponent

Sets the disabled state for the chip.

disabled: boolean = false

Defined in src/components/chip/chip.ts:68

Defines if the chip is removable or not.

removable: boolean = false

Defined in src/components/chip/chip.ts:75

Defines if the chip is selectable or not.

selectable: boolean = false

Defined in src/components/chip/chip.ts:82

Defines if the chip is selected or not.

selected: boolean = false

Defined in src/components/chip/chip.ts:90

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

variant: StyleVariant

Defined in src/components/chip/chip.ts:97

styles: CSSResult[]

Defined in src/components/chip/chip.ts:50

The tagName read-only property of the Element interface returns the tag name of the element on which it's called.

MDN Reference

tagName: "igc-chip" = 'igc-chip'

Defined in src/components/chip/chip.ts:49

get locale(): string

Defined in src/components/chip/chip.ts:108

Returns string

Gets/Sets the locale used for getting language, affecting resource strings.

set locale(value: string): void

Defined in src/components/chip/chip.ts:104

Parameters

  • value: string

Returns void

get resourceStrings(): IChipResourceStrings

Defined in src/components/chip/chip.ts:121

Returns IChipResourceStrings

The resource strings for localization. Currently only aria-labels for the default select/remove icons are localized.

set resourceStrings(value: IChipResourceStrings): void

Defined in src/components/chip/chip.ts:117

Parameters

  • value: IChipResourceStrings

Returns void

Inherited from: EventEmitterMixin< IgcChipComponentEventMap, Constructor<LitElement> >(LitElement)

addEventListener(type: K, listener: object, options: boolean | AddEventListenerOptions): void

Defined in src/components/common/mixins/event-emitter.ts:7

Parameters

  • type: K
  • listener: object
  • options: boolean | AddEventListenerOptions

Returns void

Inherited from: EventEmitterMixin< IgcChipComponentEventMap, Constructor<LitElement> >(LitElement)

emitEvent(type: K, eventInitDict: CustomEventInit<D>): boolean

Defined in src/components/common/mixins/event-emitter.ts:30

Parameters

  • type: K
  • eventInitDict: CustomEventInit<D>

Returns boolean

Inherited from: EventEmitterMixin< IgcChipComponentEventMap, Constructor<LitElement> >(LitElement)

removeEventListener(type: K, listener: object, options: boolean | EventListenerOptions): void

Defined in src/components/common/mixins/event-emitter.ts:17

Parameters

  • type: K
  • listener: object
  • options: boolean | EventListenerOptions

Returns void

register(): void

Defined in src/components/chip/chip.ts:53

Returns void

igcRemove: CustomEvent<boolean>

Defined in src/components/chip/chip.ts:22

igcSelect: CustomEvent<boolean>

Defined in src/components/chip/chip.ts:23