Chips

Tailwind

Interactive elements for actions, selection, or filtering.

Examples

Actions

Like Share

Selection

red green blue

Multi-Select

vanilla chocolate strawberry

Usage

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

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

Variants

Append .chip-[color] class to set a variant color.

html
<span class="chip chip-primary">Skeleton</span>
primary secondary tertiary success warning error

Active State

Dynamically add .chip-active or .chip-[color]-active classes to show an active state.

ts
let color: string = 'red';
html
<span class="chip" class:chip-active={color === 'red'}>Red</span>

Input Chips

A dedicated input component for accepting multiple values using chips.

Input Chip →