Skip to main content

Chip

Development

Examples

Basic

PreviewAngularReactVueJavaScript

API

Properties

Name
Description and specifications
active
Determines if the chip is interactive. If false no user input (e.g. mouse states, keyboard navigation) will be possible and also the close button will not be present.
Attribute:
active
Type:
boolean
Default:
true
background
Custom background color. Only has an effect on chips with `variant='custom'`
Attribute:
background
Type:
string | undefined
chipColor
Custom font and icon color. Only has an effect on chips with `variant='custom'`
Attribute:
chip-color
Type:
string | undefined
closable
Show close icon
Attribute:
closable
Type:
boolean
Default:
false
color
Deprecated
since 2.1.0 use `chip-color`
Custom font and icon color. Only has an effect on chips with `variant='custom'`
Attribute:
color
Type:
string | undefined
icon
Show icon
Attribute:
icon
Type:
string | undefined
outline
Show chip with outline style
Attribute:
outline
Type:
boolean
Default:
false
variant
Chip variant
Attribute:
variant
Type:
"alarm" | "critical" | "custom" | "info" | "neutral" | "primary" | "success" | "warning"
Default:
'primary'

Events

Name
Description and specifications
closeChip
Since 1.5.0
Fire event if close button is clicked
Detail:
any