Skip to content

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 '@getufy/flint-ui'; // auto-registers all
// or
import { FlintChip } from '@getufy/flint-ui';

Usage ​

html
<flint-chip></flint-chip>

Properties ​

PropertyAttributeTypeDefaultDescription
labellabelstring''Text content displayed inside the chip.
variantvariant'filled' | 'outlined''filled'Visual style variant of the chip.
colorcolor'default' | 'primary' | 'secondary''default'Color theme applied to the chip.
sizesizeSize'md'Size of the chip.
clickableclickablebooleanfalseWhether the chip responds to click interactions.
deletabledeletablebooleanfalseWhether the chip shows a delete icon.
disableddisabledbooleanfalseDisables the chip and prevents interaction.

Events ​

EventDetailDescription
flint-chip-click—Fired when a clickable chip is clicked.
flint-chip-delete&#123; value: string &#125;Fired when the chip's delete icon is clicked. detail: &#123; value: string &#125;

Slots ​

NameDescription
(default)Text content for the chip (alternative to the label prop).
avatarAvatar element shown at start.
iconIcon shown at start when no avatar.

CSS Parts ​

NameDescription
baseThe chip's base wrapper element.
labelThe label text element.
delete-iconThe delete button element.

CSS Custom Properties ​

PropertyDefault
--flint-chip-bg—
--flint-chip-color—
--flint-chip-height32px
--flint-chip-padding-x12px
--flint-chip-border-radius16px
--flint-chip-font-size0.875rem
--flint-chip-gap8px
--flint-chip-height-sm24px
--flint-chip-padding-x-sm8px
--flint-chip-font-size-sm0.75rem
--flint-chip-border-radius-sm12px
--flint-chip-height-lg40px
--flint-chip-padding-x-lg16px
--flint-chip-font-size-lg1rem
--flint-chip-border-radius-lg20px
--flint-font-family—
--flint-hover-color—
--flint-active-color—
--flint-input-border-color—
--flint-primary-color—
--flint-secondary-color—
--flint-primary-color-hover—
--flint-shadow-sm—
--flint-secondary-color-hover—
--flint-avatar-size24px