Chip

A compact element used to represent tags, filters, or selections with optional avatars, social icons, and removable states.

Installation

npx chilli@latest add chip

Default

Small
Medium
Large
Extra Large

Types

Fill
Light
Fill Avatar
Light Avatar

Avatar

Alice
Bob
Charlie
Diana

Social

Globe
Globe
Globe
Globe

Removable

React
TypeScript
Tailwind
Figma

API Reference

Chip

PropTypeDefaultDescription
variant"default" | "avatar" | "social""default"The visual variant of the chip.
type"fill" | "light""fill"The background style — filled or outlined.
size"sm" | "md" | "lg" | "xl""md"The size of the chip.
labelstringThe text content of the chip.
avatarSrcstringImage source for the avatar variant.
socialIconReactNodeIcon element for the social variant.
onRemove() => voidCallback when remove button is clicked. Shows remove icon when provided.
classNamestringAdditional CSS classes.