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

Dot

dot

Renders a semantic or arbitrary-color status indicator with optional pulse and accessible labeling.

Usage

Tone color

tone provides neutral / brand / success / warning / danger five-level status colors.

tsx
<>
  <Dot tone="neutral" />
  <Dot tone="brand" />
  <Dot tone="success" />
  <Dot tone="warning" />
  <Dot tone="danger" />
</>

Size

size provides three gears sm / md / lg.

tsx
<>
  <Dot size="sm" tone="brand" />
  <Dot size="md" tone="brand" />
  <Dot size="lg" tone="brand" />
</>

Breathe (Online)

pulse Add animate-ping diffusion animation to indicate the active state; pass label to let the screen reader broadcast the semantics.

tsx
<Dot tone="success" pulse label="Online" />

Any color (chart legend)

color connects to the semantic color name / any CSS color, the same resolveTone path as ChartSeries.color and Brand.color - the fifth gear tone cannot be connected chart-1..6. Note that style={{ color }} cannot change the dots (that is the text color and is silently disabled).

tsx
<>
  <Dot color="chart-1" />
  <Dot color="chart-2" />
  <Dot color="chart-3" />
  <Dot color="#ff8800" />
</>

List leader tag

Dot As an inline primitive, it is often used as the status leader point of list items.

The service is running
tsx
<span className="inline-flex items-center gap-2">
  <Dot tone="success" />
  The service is running
</span>

When to use

Use Dot for the smallest online, processing, warning, or error indicator. Use StatusDot for a complete health row or Badge for corner counts.

Import

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

Props

NameTypeDefaultDescription
tone"neutral"|"brand"|"success"|"warning"|"danger"neutralSemantic color.
colorstring-Any dot color: a semantic color name such as chart-2 or primary, any CSS color, or a CSS variable resolved through resolveTone. Takes precedence over tone, and keeps custom chart legends in sync with their series.
size"sm"|"md"|"lg"mdDot size.
pulsebooleanfalseBreathing animation for active states.
labelstring-Adds role=status and an accessible label; omission makes it decorative.

Usage notes

  • style={{ color }} does not change the dot and fails silently. The dot is painted with a background color, while the CSS color property affects text. Use the color prop for custom colors.
  • Provide label whenever the dot conveys status. Without it, the dot is aria-hidden and treated as decoration.
  • tone intentionally covers only five semantic colors. Use color for chart-series colors such as chart-1 through chart-6 instead of rebuilding the dot with Tag or a bare <span>.

Related

Sparkline · ImageViewer · LiveProductCard · DiffStat · ScoreRing · Badge

Playground

<Dot tone="success" size="md" />
PreviousBadgeData DisplayNextStatusDot

On this page

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