UIIcons

Chip

A compact interactive element for tags, filters, and selection states.

Installation

pnpm dlx stera-ui@latest add chip

Variants

VariantDescription
subtleMuted background, no border (default)
outlineBordered with a surface background
solidStrong inverse background

Sizes

SizeDescription
xsExtra small (default)
smSmall
mdMedium
lgLarge

With Icons

Use data-icon="inline-start" or data-icon="inline-end" on an icon to control spacing and alignment.

Active State

Use the active prop to visually mark a chip as selected.

API Reference

Built on Base UI's Button primitive — see the full API reference there. Renders as a <button> element.

PropTypeDefault
variant"subtle" | "outline" | "solid""subtle"
size"xs" | "sm" | "md" | "lg""xs"
activebooleanfalse
disabledbooleanfalse