Raft Design System

Components · Data Display

Status

The square status pixel — a presence light, an attention dot or a status color beside a word — and the status chips, agent tag and runtime chip built with it.

StableAlso called StatusChip, status chip, StatusDot, presence light, attention dot, runtime chip, agent tag
import { Status } from "@botiverse/raft-ui";

Status is the square pixel of a status color. On its own it is a presence light or an attention dot; beside a word it is a status chip, a soft tint with a pixel and a word that says where something is or how an agent is. Task status chips are TaskStatusBadge (Tasks); this doc covers the pixel, the chips for agent states, and the two small chips that go with an agent's name: the agent tag and the runtime chip.

status/compositions/default

When to use

SituationUse
Where a task is: on a card, in properties, in detailsTaskStatusBadge (Tasks)
A task mentioned in running textTaskChip (Tasks)
How an agent or a person is, on its avatarThe presence light, AvatarBadge (Avatar)
How an agent is, written out: a profile card, propertiesAn agent state chip
A status color beside a word: a group heading, a navigation subtitle, an event lineStatus
Something waits, on an icon with no room for a numberThe attention dot: Status with variant="accent"
An agent has read the message that mentions itNot a light: a lime check, MessageReferenceReadMark (MessageItem)
A countBadge
This is an agentThe agent tag
What an agent runs onThe runtime chip

Anatomy

  • Status: the pixel, with an ink edge. presence draws one of the five presence lights; variant draws a color role. size sets the pixel.

Sizes

  • A status light beside text has one size, 10px (md, the default) with a 1.5px ink edge: in a badge, a panel header, a sidebar row, a list row. Don't pass a size there. 10px is 7px of color, more than the 6px it takes to tell green from yellow from orange, plus two 1.5px ink edges, and about the cap height of the 14px text beside it.
  • The light is even because its rows are. Every line and box it sits in is an even number of pixels (lines of 16px to 24px, 20px and 22px chips, 36px rows), so an even light has the same space above and below it and lands on a whole pixel. The 9px light it replaced had half a pixel left over, and a screen can't split it: the light was drawn with one more device pixel above it than below, 0.5px below the center on a 1x screen and 0.17px on a 3x one. Decided by stdrc on 2026-10-22, replacing the 9px of #670. The same 10px is every light and dot that sits beside text: the task status pixel, the attention dot of an unread row, a notice or an action card's status, the timeline's marker. None of them is 9px.
  • A light on an avatar follows the avatar, not the text: AvatarBadge sizes it from 6px to 20px with the avatar (Avatar), at about a third of it, on its corner rather than centered in a row. Its 9px on a 27px avatar is that scale, not the light beside text, and stays.
  • When the light leads a line of text it is centered on the first line (A mark that leads text). Badge and PanelActivity place a Status in them this way and hold it at 10px whatever size it was given; elsewhere, give it className="lead-dot".
  • A notice (a toast, a banner, a panel notice) never uses a status light to say what kind of notice it is (success, info, warning, error); it leads with its intent's icon, or an avatar when it is about someone (Banner, Toast). One square mark must not carry several meanings, and a status light keeps its own, the ones in When to use: whether an agent, a person or a computer is working or online, a task's status, and the square attention dot that marks something waiting or unread. A notice about one of those things may still show that thing's light inside it.
  • xs, sm and lg (6px, 8px and 11px) are not for a light beside text. sm is the attention dot on an icon's corner (a rail item, a page button in the server popover).

Variants

Presence lights

presenceWord
onlineOnline
busyWorking
errorError
offlineOffline
externalExternal agent

Their colors, and the colors of the task statuses (five of the six; Backlog has none), are in Color.

Agent state chips

An agent state chip is a soft Badge holding a Status with its presence and the word from the table above. The tint is the soft step of the light's color: presence-busy-soft for Working (Badge appearance="soft" variant="busy"), and the *-soft tint of the same family for the others (Soft tints).

A status keeps its color in every theme (Themes). The Working light and its tint have their own tokens, presence-busy and presence-busy-soft, with the values of brand and brand-soft in Raft Yellow: when they pointed at brand, Boring Gray turned a working agent gray. variant="primary" is that same presence-busy.

Agent tag

The agent tag follows an agent's name and holds the word agent. It is an outline Badge: Space Mono, foreground-muted, with a hairline border. With a users icon in place of the word, the same tag shows a member count.

Runtime chip

The runtime chip names what an agent runs on: Claude Code, Codex. It is Space Mono in ink on info-soft, with a cpu icon. raft-ui has no part for it yet.

Content

  • Pair every status color with a word. Write the word in sentence case: In progress, Working.
  • Set IDs inside a chip in Space Mono: #25.

Accessibility

Status renders a <span> and wraps no Base UI primitive.

  • Hide a pixel from assistive technology when its word is next to it (aria-hidden).
  • Give a pixel with no word next to it, such as an attention dot on a tab or a rail item, role="img" and an aria-label that says what it means.

Rules

  • Keep saturated color to the size of the pixel. On a chip the rest is a soft tint, a highlight without a border: a screen can hold a dozen chips.
  • Make every chip 22px high with radius-chip, so chips line up in a row; Badge and TaskChip already do.
  • Put a new state into one of the six task statuses or the five presence lights; don't invent a color. "Stuck" is an agent error. "Needs you" is an attention dot and an action button, not a status (Tasks).
  • Don't set a custom --status-color: every status color has a fixed meaning.
  • Don't paint a status, or the tint behind it, with brand or brand-soft: they follow the theme, and a status doesn't.
  • Never animate a status: a working agent is a still light (Motion).

API

Status

PropTypeDefault
presenceA status light (online, busy, error, offline, external): a fixed meaning that needs its word nearby, or an aria-label. It takes the place of `variant`'s colour."online" | "busy" | "error" | "offline" | "external"
size"xs" | "sm" | "md" | "lg""md"
variant"primary" | "accent" | "warning" | "danger" | "default" | "information" | "muted" | "success""default"
renderAllows you to replace the component's HTML element with a different tag, or compose it with another component.ReactElement | ((props, state) => ReactElement)

Also takes the attributes of its element.

Changes

  • 0.22.1 · Design SystemA status light beside text is 10px: every status light and attention dot that sits beside text, in a chip, a badge, a panel header, a sidebar row or a list row, is 10px with a 1.5px ink edge and a 2px radius; none of them is 9px. A light on an avatar's corner still follows the avatar, and the 8px Status sm stays the attention dot on an icon's corner (the NotificationCenter bell's dot, a Status at the default size, is 10px). It applies to Status, Badge, PanelActivity, SidebarSectionAttention, LiveAgentActivityBarStatus, NotificationCenter and its trigger's dot, the task status icons (TaskStatusIcon, TaskChip, TaskCardStatus, TaskStatusBadge, TaskList, TaskBoard), InboxItem, MessageActionCard, Timeline and the lead-dot utility.
  • 0.22.0 · Breaking ChangesBanner, PanelNotice and ToastIcon: a Status light placed as the leading mark is no longer laid out as one.
  • 0.20.1 · Addedlead-icon and lead-dot utilities: center an icon (lead-icon) or a Status light (lead-dot) you place yourself on the first line of the text beside it.
  • 0.6.1 · AddedStatus and AvatarBadge take presence (online / busy / error / offline / external), from one shared colour map (type Presence).
  • 0.6.0 · Breaking ChangesProps that no longer change anything are removed: Badge uppercase; Checkbox size, variant, color; Status pulse, attention (status never animates); Switch / SwitchThumb size; SidebarItem variant; SidebarItemCount / SidebarItemIndicator variant and appearance (the count is always the pink sticker, the indicator the yellow @); NotificationCenterActionButton variant; DrawerContent width (one-go forms use the wide Dialog); AppRailItemIndicator attention; AppRailItemAttention children; Steps size, track, renderIndicator, renderTraveler; FilePreviewBadge type, color. Remove them at call sites.
  • 0.0.21 · AddedAdded LiveAgentActivityBar compound parts (Row, Avatar, Status, Content, Text) for composable live agent activity status.