Status
Shows the state of a record, such as a payment or request, with color and text.
- Status
- ReadyBuild day 6 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 { Status, type StatusValue } from "@/ui";
const status: StatusValue = "pending";
export default function StatusDemo() {
return (
<>
<Status status={status} />
<Status status="success" type="dot" />
<Status status="refunded" type="inline" timestamp="18 Sep, 14:02" />
</>
);
}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
- status
- "pending" | "processing" | "success" | "failed" | "expired" | "refunded" · default none
- A closed set. Text, icon, and tone are locked per status. Adding one is a design system change.
- type
- "pill" | "inline" | "dot" · default "pill"
- Filled pill, icon with text, or a dot with text.
- size
- "sm" | "md" · default "md"
- Icon and text size.
- timestamp
- ReactNode · default none
- Shown after the text for inline only. Pass the formatted date.
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
- pill, inline, or dot.
- 📐 Size
- size
- sm or md.
- 🎯 Status
- status
- Same six values. Success is Successful in the text.
- 📅 Show Timestamp, Timestamp
- timestamp
- Pass timestamp to show it. Inline only.
Accessibility
What the code in src/ui does today, and what it leaves to you.
Keyboard
- Not focusable and not interactive. Tab skips it.
Screen readers
- Read as plain text. Icons and dots are aria-hidden, so the text carries the meaning.
What you still need to do
- Format the timestamp for the user's locale before you pass it.
- A status that changes while the user is on the page is not announced. Use a live region if they need to hear it.
When to use
Lists and detail pages where the user needs to know what state an item is in.
Do and don't
Do
- Map each state to one color and keep it the same across the product.
- Always include the state name in text.
Don't
- Rely on color alone.
- Invent a new color for a state that already has one.
Related
4 of 28 other molecules, same role and ready ones first.
- AccordionStacked sections that expand to reveal their content.Ready
- CardA container that groups related content and actions.Ready
- DividerA thin line used to separate content into distinct sections.Ready
- Empty StateCommunicates that there is no content to show, with a next step.Ready
Status reflects the component tracker snapshot of 29 October 2026.