Skip to main content
On this page

Status

Status component is used to indicate the status of a process or state. It displays a colored indicator dot with an optional label.

import { Status } from "@ninna-ui/feedback";

pnpm add @ninna-ui/feedback@latest
Includes @ninna-ui/core. CSS setup required.View source

Usage

Import and use the Status component to display status indicators.

import { Status } from "@ninna-ui/feedback";
export default function Example() {
return (
<Status value="success">Completed</Status>
);
}

Basic

Status indicators without labels.

Live preview

With Label

Status indicators with descriptive labels.

Live preview
Completed
Failed
Pending
Processing

Sizes

Different size variants for status indicators.

Live preview
Small
Medium
Large
Small
Medium
Large

Status Values

Different status values and their semantic meanings.

Live preview
Success

Indicates successful completion

Error

Indicates failure or error state

Warning

Indicates caution or pending state

Info

Indicates informational state

Use Cases

Real-world examples of Status component usage.

Live preview

Server Status

API Server

Online

Database

Connected

Cache Server

Degraded

Email Service

Offline

Task Status

Design Review

Completed

Code Review

In Progress

Testing

Pending

Deployment

Blocked

User Status

JD

John Doe

Active
JS

Jane Smith

Away
BW

Bob Wilson

Offline

Build Status

Build #1234 passed

Build #1233 failed

Build #1235 running

API Reference

Complete list of props for the Status component.

Props

PropTypeDefaultDescription
value'success' | 'danger' | 'warning' | 'info''info'Status value that determines the indicator color
size'sm' | 'md' | 'lg''md'Size of the status indicator and label
childrenReact.ReactNode—Optional label text to display next to the indicator
classNamestring—Additional CSS classes

Accessibility

  • Uses role="status" for proper semantics
  • Provides aria-label when no visible label is present
  • Status colors meet WCAG contrast requirements
  • The colored dot is marked as aria-hidden="true" since the label conveys the meaning