Status Dot

Filled presence mark for online, live, and similar status chips.

Also known as: presence dot, online dot, live indicator, status indicator

Installation

Install with the CLI, or copy the component source into your project.

Add status-dot (npm)

npx --yes -p github:itsvigneshv/default-file-ui#main df-ui add status-dot

Default

Filled presence mark at the default md diameter.

Sizes

Diameter steps from xs to xl.

xs
sm
md
lg
xl

In badge

Prefer StatusDot in Badge leading for online and live chips. Omit size so the mark follows the badge.

OnlineLiveOffline

Properties

Filled presence mark for online, live, and offline chips. Uses currentColor. Prefer inside Badge leading so the mark follows the badge size when size is omitted.

Status Dot

PropTypeDefaultNotes
size"xs" | "sm" | "md" | "lg" | "xl"-Diameter step. Omit inside Badge to inherit the badge size step. Outside Badge, the default diameter is md.
classNamestring-Additional styles on the mark.
…HTML attributesHTMLAttributes<HTMLSpanElement>-Standard element attributes. Decorative by default (aria-hidden). Set aria-hidden false and an accessible name when the mark is meaningful without adjacent text.

Tokens

Theme defaults live on :root. Override these globally or on a local host.

TokenTypeDefaultNotes
--df-status-dot-size-xsCSS lengthcalc(1.5 * var(--spacing-unit))xs diameter.
--df-status-dot-size-smCSS lengthcalc(1.75 * var(--spacing-unit))sm diameter.
--df-status-dot-size-mdCSS lengthcalc(2 * var(--spacing-unit))md diameter. Default when size is omitted outside a sized host.
--df-status-dot-size-lgCSS lengthcalc(2.25 * var(--spacing-unit))lg diameter.
--df-status-dot-size-xlCSS lengthcalc(2.5 * var(--spacing-unit))xl diameter.