Chips

Tailwind

Interactive elements for actions, selection, or filtering.

Examples

Actions

Like Share

Selection

red green blue

Multi-Select

vanilla chocolate strawberry

Getting Started

Apply .chip to any inline element, such as a span or anchor tag.

html
<span class="chip">Skeleton</span>

Variants

Supports all standard variant styles via .variant-[style]-[color].

html
<span class="chip variant-filled-primary">Skeleton</span>

Filled

primary
secondary
tertiary
success
warning
error
surface

Soft

primary
secondary
tertiary
success
warning
error
surface

Ringed

primary
secondary
tertiary
success
warning
error
surface

Ghost

primary
secondary
tertiary
success
warning
error
surface

Glass

primary
secondary
tertiary
success
warning
error
surface

Active State

Swap out variant styles to reflect changes in state.

typescript
$: chipStateClass = (someCondition) ? 'variant-filled-primary' : 'variant-soft-primary';
html
<span class="chip {chipStateClass}">...</span>