Hulian UIv0.93.5413 components0 components
  • Start
  • Components
  • Blocks
  • Pages
  • Demos
  • Changelog
ChineseEnglish
  • ComponentsComponents
  • ThemeTheme

Collections

  • QuestionCard
  • Table
  • Book3D
  • ProTable
  • PricingTable
  • JsonViewer
  • EditableTable
  • List
  • Descriptions
  • RowActions
  • Tree
  • Card
  • Carousel
  • Video
  • Audio
  • BentoGrid
  • Image
  • MagicCard
  • AnimatedList
  • Marquee
  • Sortable
  • Kanban
  • DesignCanvas
  • LayerTree
  • StageDraw
  • SlideDeck
  • PresenterView
  • ComponentPicker
  • EventStream
  • QueueLane
  • DocumentSheet
  • Novel reader
  • Scheduler
  • Org classroom
  • Danmaku
  • LiveChat
  • LivePlayer
  • LogViewer
  • FileTree
  • CodeReviewThread
  • VirtualList
  • InfiniteScroll
  • LogoLoop
  • BounceCards
  • CardSwap
  • ChromaGrid
  • CircularGallery
  • DomeGallery
  • FlyingPosters
  • InfiniteMenu
  • MagicBento
  • ScrollStack
  • ProfileCard
  • TiltedCard
  • PixelCard
  • DecayCard
  • ReflectiveCard
  • Folder

Charts and Diagrams

  • Flow
  • Diagram
  • Paper
  • SequenceDiagram
  • Sankey
  • Sparkline
  • Funnel
  • Treemap
  • Gantt
  • Heatmap
  • ContributionGraph
  • Legend
  • Chart
  • WorldMap

Information

  • ImageViewer
  • LiveProductCard
  • DiffStat
  • ScoreRing
  • ScoreScale
  • Badge
  • Dot
  • StatusDot
  • Chip
  • FilterChip
  • Coupon
  • Tag
  • Annotation
  • Avatar
  • AvatarCircles
  • User
  • QRCode
  • Comment
  • RelativeTime
  • GitCommit
  • DeployStatus
  • ShieldBadge
  • AwardBadge
  • CreditCard
  • IconTile

Metrics

  • Stat
  • Statistic
  • Meter
  • Timeline
  • NumberTicker

Placeholders

  • Empty
  • Skeleton
  • Watermark

StatusDot

status-dot

Pairs a status label with a colored dot and optional animated activity state.

Usage

Health status

Four semantic states: online, degraded, offline, and maintenance. Colors are derived from tone.

OnlineDegradedOfflineUnder maintenance
tsx
<>
  <StatusDot status="online" label="Online" />
  <StatusDot status="degraded" label="Degraded" />
  <StatusDot status="offline" label="Offline" />
  <StatusDot status="maintenance" label="Under maintenance" />
</>

Tail value slot

extra slot placement delay/success rate and other values, tabular-nums aligned.

Gateway A86msGateway B412ms
tsx
<>
  <StatusDot status="online" label="Gateway A" extra="86ms" />
  <StatusDot status="degraded" label="Gateway B" extra="412ms" />
</>

Pulse

online Default respiratory pulse; can be switched explicitly with pulse.

Automatic pulseForced pulseTurn off pulse
tsx
<>
  <StatusDot status="online" label="Automatic pulse" />
  <StatusDot status="degraded" label="Forced pulse" pulse />
  <StatusDot status="online" label="Turn off pulse" pulse={false} />
</>

Size & dot only

size controls the dot size; only dots are rendered when label is omitted.

tsx
<>
  <StatusDot status="online" size="sm" />
  <StatusDot status="online" size="md" />
  <StatusDot status="online" size="lg" />
</>

When to use

Use StatusDot for a channel, model, or service health row. It wraps Dot with four health meanings, text, and a metric slot. Use Badge for counts.

Import

ts
import { StatusDot } from "@hulianui/ui"

Props

NameTypeDefaultDescription
status*"online"|"degraded"|"offline"|"maintenance"-Maps to success, warning, danger, or neutral.
pulsebooleanOnline onlyExplicitly overrides automatic online pulse.
size"sm"|"md"|"lg"mdSize.

Slots

SlotTypeDescription
labelReactNodeStatus text announced with the dot.
extraReactNodeTrailing latency or success metric.

Usage notes

Only online pulses by default; pass pulse to animate another state. Backend status and macOS menu-item notes are unrelated.

Related

Sparkline · ImageViewer · LiveProductCard · DiffStat · ScoreRing · Badge

Playground

Online
<StatusDot status="online" size="md" pulse label="Online" />
PreviousDotData DisplayNextChip

On this page

  • Usage
  • Documentation
    • When to use
    • Import
    • Props
    • Slots
    • Usage notes
    • Related
  • Playground