Skip to content

Status Dot

Beta
Get Ritla UI

A coloured dot with a label for the state of an account, card, payment or service.

Preview

Mirrored is the same English content laid out right to left: it separates a mirroring bug from a translation one.

PreviewCode
EnglishMirroredArabic
LTR →

Installation

  1. Add the component

    npx ritla add status-dot

    Also works with shadcn: npx shadcn@latest add @ritla/status-dot

  2. Or copy by hand

    Installing by hand copies the component's source into your project. The source comes with a Ritla UI license, so the CLI is the short way to the same files.

Usage

status-dot.tsx
import { StatusDot } from "@/components/ui/status-dot";<StatusDot status="success">Active</StatusDot>

API reference

StatusDot

PropTypeDefaultDescription
status"success" | "warning" | "danger" | "info" | "neutral"NoneFigma's Status.
childrenReactNodeNoneFigma's Label.
labelstringNoneNames the dot when the label is off.

Accessibility

ARIA

  • Colour never carries the meaning alone: keep the label, or name the dot with label.
  • Use a Badge when the state needs more weight.

Arabic and RTL notes

Mirrors

  • The dot starts the line, on the right in Arabic.
Numerals
It holds no numbers.
Arabic typography
body-14.