Appearance
Chip ​
Variants
Loading...
Sizes
Loading...
Interactive
Loading...
Chip: a compact element representing an input, attribute, or action.
- Tag:
<flint-chip> - Class:
FlintChip
Import ​
ts
import 'flint-ui'; // auto-registers all
// or
import { FlintChip } from 'flint-ui';Usage ​
html
<flint-chip></flint-chip>Properties ​
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
label | label | string | '' | Text content displayed inside the chip. |
variant | variant | 'filled' | 'outlined' | 'filled' | Visual style variant of the chip. |
color | color | 'default' | 'primary' | 'secondary' | 'default' | Color theme applied to the chip. |
size | size | 'sm' | 'md' | 'lg' | 'md' | Size of the chip. |
clickable | clickable | boolean | false | Whether the chip responds to click interactions. |
deletable | deletable | boolean | false | Whether the chip shows a delete icon. |
disabled | disabled | boolean | false | Disables the chip and prevents interaction. |
Events ​
| Event | Detail | Description |
|---|---|---|
flint-chip-delete | — | Fired when the chip's delete icon is clicked. |
click | — |
Slots ​
| Name | Description |
|---|---|
avatar | |
icon |
CSS Custom Properties ​
| Property | Default |
|---|---|
--flint-chip-height | 32px |
--flint-chip-padding-x | 12px |
--flint-chip-border-radius | 16px |
--flint-chip-font-size | 0.875rem |
--flint-chip-gap | 8px |
--flint-chip-height-sm | 24px |
--flint-chip-padding-x-sm | 8px |
--flint-chip-font-size-sm | 0.75rem |
--flint-chip-border-radius-sm | 12px |
--flint-chip-height-lg | 40px |
--flint-chip-padding-x-lg | 16px |
--flint-chip-font-size-lg | 1rem |
--flint-chip-border-radius-lg | 20px |
--flint-font-family | — |
--flint-surface-2 | — |
--flint-text-color | — |
--flint-hover-color | — |
--flint-active-color | — |
--flint-input-border-color | — |
--flint-primary-color | — |
--flint-text-color-on-primary | — |
--flint-secondary-color | — |
--flint-shadow-sm | — |
--flint-avatar-size | 24px |