Componentfeedback2.25 KB gzipZero dependencies

Status Dot

Live status beacon with radar sweep pulse, glow rings and occupancy levels.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add status-dot

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { StatusDot } from "@/components/ui/status-dot"; <StatusDot level="full" occupancyPercent={82} waitTime="12 min" />

Source code

status-dot.tsx + 1 helper

Zero third-party dependencies (2 local files shown in tabs below).

tsxstatus-dot.tsx424 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export type GateOccupancyLevel = "low" | "moderate" | "full" | "closed";export type StatusDotVariant = "booth" | "badge" | "dot";export type StatusDotSize = "sm" | "md" | "lg"; export interface StatusDotProps extends React.HTMLAttributes<HTMLDivElement> {  /** Gate occupancy level */  level?: GateOccupancyLevel;  /** Display variant: complete booth card, inline ticket badge, or pure beacon dot */  variant?: StatusDotVariant;  /** Size of the beacon dot */  size?: StatusDotSize;  /** Name or designation of the turnstile gate */  gateName?: string;

Props

Interactive Prop Playground

Tweak parsed AST props below to generate ready-to-paste JSX.

tsx3 lines
import { StatusDot } from "@/components/ui/status-dot"; <StatusDot />
PropTypeDescription
levelGateOccupancyLevelGate occupancy level
variantStatusDotVariantDisplay variant: complete booth card, inline ticket badge, or pure beacon dot
sizeStatusDotSizeSize of the beacon dot
gateNamestringName or designation of the turnstile gate
terminalstringTerminal or booth station title
laneTypestringLane category (e.g. VIP FAST-TRACK, GENERAL ADMISSION)
occupancyPercentnumberNumerical occupancy percentage override (0 to 100)
waitTimestringEstimated wait duration string
throughputstringAdmission flow rate
turnstileIdstringTurnstile equipment serial or station ID
labelstringCustom label override for the status
sublabelstringCustom secondary description override
radarSweepbooleanWhether the radar sweep beam is active
pulsebooleanWhether glow ring pulses are animated
classNamestringAdditional CSS class names