Chips
TailwindInteractive elements for actions, selection, or filtering.
Stylesheets
Package
Source
Doc
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.
<span class="chip">Skeleton</span>
Variants
Append .chip-[color]
class to set a variant color.
<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.
let color: string = 'red';
<span class="chip" class:chip-active={color === 'red'}>Red</span>
Input Chips
A dedicated input component for accepting multiple values using chips.