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.
labelstring—The text content of the chip.
avatarSrcstring—Image source for the avatar variant.
socialIconReactNode—Icon element for the social variant.
onRemove() => void—Callback when remove button is clicked. Shows remove icon when provided.
classNamestring—Additional CSS classes.