Componentfeedback2.25 KB gzipZero dependencies
Status Dot
Live status beacon with radar sweep pulse, glow rings and occupancy levels.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add status-dotOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { StatusDot } from "@/components/ui/status-dot"; <StatusDot level="full" occupancyPercent={82} waitTime="12 min" />Source code
status-dot.tsx + 1 helperZero 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 />| Prop | Type | Description |
|---|---|---|
| level | GateOccupancyLevel | Gate occupancy level |
| variant | StatusDotVariant | Display variant: complete booth card, inline ticket badge, or pure beacon dot |
| size | StatusDotSize | Size of the beacon dot |
| gateName | string | Name or designation of the turnstile gate |
| terminal | string | Terminal or booth station title |
| laneType | string | Lane category (e.g. VIP FAST-TRACK, GENERAL ADMISSION) |
| occupancyPercent | number | Numerical occupancy percentage override (0 to 100) |
| waitTime | string | Estimated wait duration string |
| throughput | string | Admission flow rate |
| turnstileId | string | Turnstile equipment serial or station ID |
| label | string | Custom label override for the status |
| sublabel | string | Custom secondary description override |
| radarSweep | boolean | Whether the radar sweep beam is active |
| pulse | boolean | Whether glow ring pulses are animated |
| className | string | Additional CSS class names |