All components
Chewypixel component

Status

A colored dot and a label for showing state, with an optional pulse.

  • GumdropLive
  • Taffy Co.Syncing
  • SugarloafPending
  • JawbreakerFailed
  • SprinklePaused

Installation

npx shadcn@latest add https://chewypixel.io/r/status.json

Usage

import { Status } from "@/components/ui/status";

export function OrderStatus() {
  return (
    <div className="flex gap-4">
      <Status tone="success" pulse>Live</Status>
      <Status tone="warning">Pending</Status>
      <Status tone="danger">Failed</Status>
    </div>
  );
}

Props

tone

The color of the dot and pulse.

"success" | "warning" | "info" | "danger" | "neutral" = "neutral"

pulse

Pulses a ring out from the dot, for live states.

boolean = false

children

The label.

ReactNode

Released under the MIT License.

More components

See them in a real app

These components come from Mochi, our admin dashboard template built with Next.js, shadcn/ui and Motion.