Chip
A compact label for a category, filter, or selected value.
- Status
- ReadyBuild day 16 of 21
- Code
- In React
- Role
- Display
Usage
This demo is live, and the code below it is the same code, imports included. The component lives in src/ui of this repository and is not published to npm yet.
Pastes as editable layers. Shadows are not exported.
import { useState } from "react";
import { Chip } from "@/ui";
export default function ChipDemo() {
const [filters, setFilters] = useState<string[]>(["KPR", "10-year term"]);
return filters.map((f: string) => (
<Chip key={f} label={f} tone="primary" onRemove={() => setFilters(filters.filter((x) => x !== f))} />
));
}Variants and states
Every specimen is the real component from src/ui, held in one state.
Pastes as editable layers. Shadows are not exported.
Props
- label
- string · default none
- Required. Also names the remove button.
- tone
- "neutral" | "primary" | "success" | "warning" | "danger" · default "neutral"
- type
- "filled" | "outline" · default "filled"
- size
- "sm" | "md" · default "md"
- Height 24 or 32.
- icon
- ReactNode · default none
- Decorative icon before the label.
- onRemove
- () => void · default none
- Shows the remove button.
Figma to code
Figma properties by their exact names from Naming, and the React prop that carries each one. The table covers the shared properties that bear on this component; the Figma file decides which of them its component exposes. None means there is no prop for it yet.
- 🧰 Type
- type
- filled or outline.
- 📐 Size
- size
- sm or md.
- 🎨 Tone
- tone
- Same five tones.
- Show Icon Left, Change Icon Left
- icon
- Pass an icon.
- Show Close
- onRemove
- Pass the handler to show it.
- Label
- label
- Same.
Accessibility
What the code in src/ui does today, and what it leaves to you.
Keyboard
- The remove button is a native button with a 44px target.
Screen readers
- The remove button is named Remove followed by the label.
What you still need to do
- After removing a chip, move focus to the next chip or back to the field that made it.
- Unlike Badge, which only labels, a chip stands for something the user chose.
When to use
Applied filters, selected options in a multi-select, or content categories.
Do and don't
Do
- Give removable chips a clear remove button with an accessible name.
- Keep chip text to one or two words.
Don't
- Use a chip for status: use a badge.
- Let a row of chips overflow the screen: wrap it.
Related
4 of 16 other atoms, same role and ready ones first.
- AvatarA visual representation of a user, team, or entity.Ready
- BadgeA small label used to highlight status, category, or count.Ready
- CommentA single message in a discussion, with author, time, and text.Ready
- HeadlineA page or section title set in the Urbanist header scale.Ready
Status reflects the component tracker snapshot of 29 October 2026.