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.
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.
When to use
Anatomy
Status: the pixel, with an ink edge.presencedraws one of the five presence lights;variantdraws a color role.sizesets 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:
AvatarBadgesizes 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
Statusin them this way and hold it at 10px whatever size it was given; elsewhere, give itclassName="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,smandlg(6px, 8px and 11px) are not for a light beside text.smis the attention dot on an icon's corner (a rail item, a page button in the server popover).
Variants
Presence lights
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 anaria-labelthat 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
brandorbrand-soft: they follow the theme, and a status doesn't. - Never animate a status: a working agent is a still light (Motion).
API
Status
Also takes the attributes of its element.
Related
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
Statussmstays the attention dot on an icon's corner (the NotificationCenter bell's dot, aStatusat 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 thelead-dotutility. - 0.22.0 · Breaking ChangesBanner, PanelNotice and ToastIcon: a
Statuslight placed as the leading mark is no longer laid out as one. - 0.20.1 · Added
lead-iconandlead-dotutilities: center an icon (lead-icon) or aStatuslight (lead-dot) you place yourself on the first line of the text beside it. - 0.6.1 · Added
StatusandAvatarBadgetakepresence(online/busy/error/offline/external), from one shared colour map (typePresence). - 0.6.0 · Breaking ChangesProps that no longer change anything are removed:
Badgeuppercase;Checkboxsize,variant,color;Statuspulse,attention(status never animates);Switch/SwitchThumbsize;SidebarItemvariant;SidebarItemCount/SidebarItemIndicatorvariantandappearance(the count is always the pink sticker, the indicator the yellow @);NotificationCenterActionButtonvariant;DrawerContentwidth(one-go forms use the wideDialog);AppRailItemIndicatorattention;AppRailItemAttentionchildren;Stepssize,track,renderIndicator,renderTraveler;FilePreviewBadgetype,color. Remove them at call sites. - 0.0.21 · AddedAdded
LiveAgentActivityBarcompound parts (Row,Avatar,Status,Content,Text) for composable live agent activity status.