Zephora UI

Data

Chip

Compact labeled entity (tag) with optional leading icon or avatar, clickable action and a delete button.

Import

import { Chip } from "@zephora/react";

Examples

Variants and colors

Default
Solid
Soft
Outline
Small
Large

Deletable tags

"onDelete" renders a remove button (aria-label "Remove") after the label.

React
TypeScript
CSS

Clickable with avatar

`onClick` turns the label into a real button with keyboard support.

API

Chip props

PropTypeDefaultDescription
variant"solid" | "soft" | "outline""soft"Visual style.
color"primary" | "success" | "warning" | "danger" | "info" | "neutral""neutral"Semantic color.
size"sm" | "md" | "lg""md"Chip size scale.
onClickMouseEventHandler<HTMLButtonElement>Makes the chip label an interactive button with full keyboard support.
onDelete(event: MouseEvent<HTMLButtonElement>) => voidRenders a delete button (aria-label "Remove") after the label.
iconReactNodeLeading icon slot (decorative).
avatarReactNodeLeading avatar slot.
disabledbooleanfalseDisables the click and delete buttons.
unstyledbooleanfalseHeadless mode — skips Zephora styling.