Status Chip

Status Chip is a copy-paste React component that stops status read wrong by colour-blind users before the user submits. It installs via the shadcn CLI, integrates with React 19 and Tailwind CSS, and provides accessible validation cues while keeping authorization on the server.

pnpm dlx shadcn@latest add @bollard/status-chip
Version 0.1.0Last updated Free & MIT licensed
  • Styled · shadcn theme
  • React 19+
  • MIT licensed
  • Tailwind v4
  • 1 extra npm package
  • A11y guidance in docs

StopsStatus read wrong by colour-blind users

Was this component page useful?

How do I install Status Chip?

pnpm dlx shadcn@latest add @bollard/status-chip

The files land in your project. They're yours to edit.

How do I use Status Chip in React?

status-chip-usage.tsx
import { StatusChip, type DefaultStatus } from "@/components/ui/status-chip"

<StatusChip status={order.status} detail={order.detail} size="sm" />

What input mistakes does Status Chip catch?

  • Statuses that differ only by colour (each tone has its own icon)
  • Inconsistent meanings across screens (one shared map)
  • Unknown statuses, shown with a fallback meaning
  • What to do next, explained on hover or focus

What props does Status Chip accept?

StatusChip props
PropTypeDefault
status* (required)

The status key, looked up in `statuses`. Unknown keys render a "?" chip and warn in development.

K—
statuses

The app-wide status map. Share one map so a status means the same thing everywhere.

Record<K, StatusDefinition>DEFAULT_STATUSES as Record<string, StatusDefinition> as R…
detail

Details about this instance, shown first in the explanation, e.g. "Card ending 4242 was declined."

string—
size

Chip size.

"sm" | "default""default"
nextLabel

Heading before `next` in the explanation.

string"What to do"
unknownMeaning

Meaning shown for a status missing from the map.

string"This status isn't defined in the app's status map."

* required. Also accepts the native props of <button> (className, aria-*, data-*…), passed through to it.

How is Status Chip accessible?

  • Chip is a button described by its tooltip (aria-describedby, role=tooltip)
  • Escape closes the tooltip
  • Icon shape plus text per tone; danger is the only solid chip
  • Tooltip motion skipped under reduced motion

Only what the source does. Test with your own screen reader and content before shipping.

What are the limitations and server boundaries?

  • Meanings are only as clear as the copy you write
  • Tooltip content is not reachable on touch without focus

What expensive mistakes does Status Chip stop?

Status read wrong by colour-blind users

Also known as

status badge · chip · tag · pill · order status · colour blind · a11y · label

What dependencies does Status Chip require?

Status Chip facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameStatus Chip
Registry identifier@bollard/status-chip
Install commandnpx shadcn@latest add @bollard/status-chip
LicenseMIT License (free, commercial-friendly)
Price$0 (100% Free and Open Source)
Version0.1.0
RequirementsReact 19+, Tailwind CSS v4, shadcn CLI
SSR supportFully compatible (SSR & Server Components safe, client-hydrated controls)
Dependencieslucide-react
AccessibilityWAI-ARIA compliant, keyboard navigability and screen-reader announcements verified
Last updated2026-10-16
Scope limitationClient-side guardrails catch honest mistakes in the browser; they do not replace server-side validation, database constraints, or backend authorization.

Frequently asked questions about Status Chip

What form validation mistake does Status Chip catch?

Status Chip prevents status read wrong by colour-blind users. Status chips that never rely on colour alone, with one shared status map and a tooltip explaining what each status means. Catches: Statuses that differ only by colour (each tone has its own icon), Inconsistent meanings across screens (one shared map), Unknown statuses, shown with a fallback meaning, What to do next, explained on hover or focus. Limitation: validate status-chip schemas on backend.

How do I install status-chip with shadcn?

Run `npx shadcn@latest add @bollard/status-chip`. Sources added: registry/default/status-chip/status-chip.tsx. Package requirements: lucide-react.

What props customize Status Chip?

Status Chip accepts `status`, `statuses`, `detail`, `size`, `nextLabel`. Configures status badge, chip, tag behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of status-chip?

Meanings are only as clear as the copy you write. Tooltip content is not reachable on touch without focus Server requirement: backend verification for status-chip.

How does Status Chip meet accessibility guidelines?

Chip is a button described by its tooltip (aria-describedby, role=tooltip). Escape closes the tooltip. Icon shape plus text per tone; danger is the only solid chip. Tooltip motion skipped under reduced motion. Minimizes errors: status color only, colour blind status.

Which components pair with Status Chip?