Components
Dot
Dot component for indicating status, colour, or presence. Uses semantic design token variants by default, with optional custom colour override.
Usage
Best practices
Use
Dotfor a bare colour/status indicator with no text; if you need a label or count, reach forBadge(orBadgeDot), and for a removable/interactive chip useTag.Prefer the semantic
tone(success/warning/danger/…) over a rawcolorso the dot tracks theme tokens; reservecolorfor swatches outside the palette.The dot is decorative - pair it with visible text or an
aria-label; colour alone doesn't convey status to assistive tech.
Props
Also exports
- const
DOT_TONE_BG_CLASSES - interface
DotProps - const
dotVariants
Composition
Used by
Avatar, Button, MenuItem, MobileNavigationRoot, SegmentedControl, Sidebar, Tabs, Tag, TagSelector