Status

A small status component with customizable variants, indicator and shiny animation effects.

Loading...

Installation

npx shadcn@latest add @scrollxui/status 

Usage

import { Status } from '@/components/ui/status';
<div className='flex gap-3'>
  <Status status='online' statusindicator>
    Online
  </Status>
  <Status status='pending' shiny shinySpeed={2}>
    Fast Shine
  </Status>
</div>

Examples


Indicator

Loading...

Shiny

Loading...

API Reference

Status

The Status component creates a customizable label with optional indicator and shine.

Props

PropertyTypeDefaultDescription
status"online" | "offline" | "away" | "busy" | "idle" | "pending" | "success" | "error" | "warning" | "info""offline"
Semantic status — controls the badge background color.
statusindicatorbooleanfalse
When true shows a small circular indicator to the left of the label.
indicatorClassNamestring
Additional classes applied to the indicator (use w-/h- classes to set size).
shinybooleanfalse
Enable the animated shine effect (forwarded to the underlying Badge).
shinySpeednumber
Shine animation speed in seconds (forwarded to the Badge).
classNamestring
Custom class names applied to the outer Badge element.
childrenReact.ReactNode
Content rendered inside the Status (typically a text label).
...propsHTMLDivElement attributes
All other standard div props/events are supported and forwarded to the Badge.

Built withby Ahdeetai.