Skip to content

Dot

⋯

Dot renders the Figma Calendar page’s Dot set: an 8px circle in one of nine categorical colors. It marks calendar events and legend entries beside visible text.

import { Dot } from "@nesra/ui/dot";
export function EventLabel() {
return (
<span className="flex items-center gap-2">
<Dot color="blue" />
Team sync
</span>
);
}

Dot is also exported from @nesra/ui.

color keeps the Figma variant names in lowercase.

  • neutral
  • brand
  • pink
  • emerald
  • blue
  • indigo
  • purple
  • orange
  • amber

Next to text, the dot is decorative. A dot that conveys meaning on its own needs an aria-label.

  • Meetings
  • Deadlines
  • Holidays

Status:

Each color is bound to a Categorical/*/base role. The base roles keep the same value in Light and Dark.

color Figma variant Fill
neutral Neutral Categorical/Neutral/base
brand Brand Categorical/Violet/base
pink Pink Categorical/Pink/base
emerald Emerald Categorical/Teal/base
blue Blue Categorical/Blue/base
indigo Indigo Categorical/Indigo/base
purple Purple Categorical/Purple/base
orange Orange Categorical/Orange/base
amber Amber Categorical/Yellow/base
  • Without aria-label or aria-labelledby, the dot has aria-hidden="true". Put the meaning in nearby text.
  • With aria-label or aria-labelledby, the dot renders role="img" with that name.
  • Color alone does not distinguish events. Pair each dot with a visible label or legend entry.
Prop Type Default Effect
color "neutral" | "brand" | "pink" | "emerald" | "blue" | "indigo" | "purple" | "orange" | "amber" "neutral" Categorical fill.

Native span attributes, className, and refs are forwarded. The rendered span has data-slot="dot" and data-color. DotProps and DotColor are exported for wrappers. Colors come from the Light and Dark semantic color roles; see also shape tokens.