Skip to content
ZikZuk UI

Chip

A small tinted label for things that earn a colour but are not a status: a role, “New”, the environment, a change figure. Neutral by default; brand only for the page's primary classification. RoleChip shows a role the same way everywhere; EnvironmentChip is the orange “STAGING”.

pnpm add @zikzuk/ui
import { Chip, RoleChip, EnvironmentChip } from "@zikzuk/ui";

Tones, roles and environment

NeutralNew+9.4%72% used94% usedPrimarySMS
OwnerAdminViewerStaging

When to use

  • Roles, “New” beside a nav item, usage that can run out, +9.4% / −2.3%.

Not for

  • A state — use StatusPill.
  • Rainbow colours per value.
  • More than two tags in a row.

Props

Chip

PropTypeDescription
tone"neutral" | "info" | "success" | "warning" | "critical" | "brand"
Default "neutral"
Stripe's badge pairs, plus the brand.
iconComponentTypeA 12px icon, only when it adds meaning.
childrenReactNodeThe label.
classNamestringExtra classes on the outer element.

RoleChip

PropTypeDescription
rolestringOWNER (brand), ADMIN (info), or your own from KitProvider roles.
labels / tonesRecord<string, …>Per-chip overrides.