Status Dot
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
Add the component
npx ritla add status-dotAlso works with shadcn:
npx shadcn@latest add @ritla/status-dotOr 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
import { StatusDot } from "@/components/ui/status-dot";<StatusDot status="success">Active</StatusDot>API reference
StatusDot
| Prop | Type | Default | Description |
|---|---|---|---|
status | "success" | "warning" | "danger" | "info" | "neutral" | None | Figma's Status. |
children | ReactNode | None | Figma's Label. |
label | string | None | Names 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.