Zephora UI

Data

Badge

Standalone pill label, or an anchored count/dot indicator positioned at the top-end corner of wrapped children.

Import

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

Examples

Variants and colors

PrimarySuccessWarningDangerInfoNeutral

Anchored count and dot

Providing `count` or `dot` together with children switches to anchored mode. Counts above `max` render as `max+`.

599+

API

Badge props

PropTypeDefaultDescription
variant"solid" | "soft" | "outline""solid"Visual style.
color"primary" | "success" | "warning" | "danger" | "info" | "neutral""primary"Semantic color.
size"sm" | "md" | "lg""md"Pill size scale.
countnumberAnchored mode: numeric indicator positioned at the top-end corner of the wrapped children.
maxnumber99Cap for `count`; larger counts render as `{max}+`.
dotbooleanfalseAnchored mode: small dot indicator instead of a count.
showZerobooleanfalseShow the indicator when `count` is 0.
unstyledbooleanfalseHeadless mode — skips Zephora styling.