Status Badge

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.

@spectrumui/status-badge
Pending
Failed
Success
In progress
In review
Expired
Submited

Installation

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

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
  • Responsive Tailwind variants present in the source

Accessibility

  • 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.
  • Edit the copied source directly for visual or 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?

No component-specific accessibility mechanism was detected automatically. Test keyboard operation, focus, labels, contrast, and screen-reader output before shipping.