Status Badge

A status badge with icon and color variants for success, error, warning, and pending states.

@spectrumui/status-badge
PendingFailedSuccessIn progressIn reviewSubmittedExpired

Installation

Login to view commandCreate a free account to access the install command

Overview

A status badge with icon and color variants for success, error, warning, and pending states.

This feedback component is intended for interfaces that need a status badge with icon and color variants for success, error, warning, and pending states, form workflows, and support tools. Its implementation is provided as editable source so the final behavior and styling stay inside your project.

Technologies

React
TypeScript
Tailwind CSS

Detected package dependencies: lucide-react.

Usage

The live preview and its Code tab above are the working example for this component. Copy the example after installation, then provide the required values from its TypeScript signature.

Props

PropTypeRequiredDescription
No shared Props typeThe installable source does not expose one shared custom prop contract. Review the exported TypeScript signatures for the individual variants shown on this page.

Use cases

  • interfaces that need a status badge with icon and color variants for success, error, warning, and pending states
  • form workflows
  • support tools

Features

  • Copy-paste source that remains in your repository
  • TypeScript source included with the component
  • Tailwind CSS classes editable in the component source
  • Reduced-motion handling present in the source

Accessibility

  • The source includes ARIA attributes or roles; preserve them when customizing the component.
  • The source checks reduced-motion preferences or includes motion-reduce styles.
  • Test focus order, keyboard operation, labels, contrast, and screen-reader output in the final application context.

Customization

  • Edit the Tailwind utility classes in the copied source to match your spacing, color, and typography tokens.
  • Use the documented className surface for local layout adjustments, then edit the source for structural changes.

Topic guides

See how this component fits into broader interface patterns, implementation decisions, and working examples.

Status Badge FAQ

Is Status Badge free to use in commercial projects?

Yes. The public Status Badge source is available under the Apache License 2.0, including for commercial use, subject to the LICENSE terms.

How do I install Status Badge?

Run npx shadcn@latest add @spectrumui/status-badge. The page also exposes the source for manual installation.

Does Status Badge require Motion?

No Motion dependency was detected in the documented source or registry entry for Status Badge.

Does Status Badge use shadcn/ui or Radix UI?

No shadcn/ui or Radix UI dependency was detected in the documented Status Badge source.

Can I use Status Badge in Next.js?

The documented React source is used in this Next.js application. Install the detected dependencies and verify any application-specific data or image configuration.

What accessibility checks should I run for Status Badge?

The source includes ARIA markup, reduced-motion handling. Test the finished interface with keyboard and screen-reader workflows.

Work with me