GitHub
Core
Glass
Brutal
Humanist

Status Tag

Status tags display contextual status information using semantic colors and icons. They provide at-a-glance visual feedback for states like success, error, warning, and more.

Status Tag Playground

Status Tag Playground
Preview
Code
Status Label
Controls
Status:
Default
Success
Error
Warning
Highlight
Size:
Small
Default
Icon:

Installation

You can add the status tag component to your project manually:

1

Install the following dependencies:

npm install class-variance-authority clsx tailwind-merge @phosphor-icons/react
2

Copy and paste the following code into your project.

Loading source code...
3

Update the import paths to match your project setup.

Update the import aliases (e.g. @/components, @/utils) in the copied files to match your project's path configuration.

Basic Usage

import { StatusTag } from '@versaui/ui/components/Tag';

<StatusTag label="Pending" />

Status Variants

Each status maps to a distinct color and icon:

<StatusTag label="Pending" />
<StatusTag status="success" label="Completed" />
<StatusTag status="error" label="Failed" />
<StatusTag status="warning" label="Review Required" />
<StatusTag status="highlight" label="New" />

Size Variants

<StatusTag label="Default Size" />
<StatusTag size="small" label="Small Size" />

Without Icon

Hide the leading status icon:

<StatusTag status="success" icon={false} label="Done" />

Accessibility

  • Semantic colors convey meaning alongside text labels
  • Icon is decorative and hidden from screen readers via aria-hidden
  • Text label is always present for screen reader access
  • Color is not the sole indicator — icons and text provide redundant cues

StatusTag Props

PropTypeDefaultDescription
status'default' | 'highlight' | 'success' | 'error' | 'warning''default'Semantic status controlling color and icon.
size'default' | 'small''default'Tag size.
iconbooleantrueShow leading status icon.
labelstring'Status'Tag label text.
classNamestring''Additional CSS classes.

On this page