Skip to content
All components

Components

Status

Status pairs a small round dot with one word, such as Running, Paused or Failed. The dot takes its colour from the tone and the word says the same thing in text. Use it in tables and lists, where a badge would be too loud.

Tones

An 8 px dot and a word; the word says it without the colour.

RunningWaitingFailed
Status { word: "Running".into(), tone: Tone::Ok }.html(out);
Status { word: "Waiting".into(), tone: Tone::Warn }.html(out);
Status { word: "Failed".into(), tone: Tone::Bad }.html(out);

Quiet

Neutral and info for states that ask nothing of the reader.

DraftQueued
Status { word: "Draft".into(), tone: Tone::Neutral }.html(out);
Status { word: "Queued".into(), tone: Tone::Info }.html(out);

With a badge

Status says how it is; a badge says what it is.

AgentNeeds a person
Badge { text: "Agent".into(), tone: Tone::Brand }.html(out);
Status { word: "Needs a person".into(), tone: Tone::Warn }.html(out);

On the Mac

The same vocabulary drawn by Ocean UI's native face (egui on Metal), as the gallery's snapshot.

Status drawn by Ocean UI's native face, darkStatus drawn by Ocean UI's native face, light

Use it

Web

use ocean_ui_core::{Status, Tone};
Status { word: "Running".into(), tone: Tone::Ok }

Native

use ocean_ui_native::{Show, core::{Status, Tone}};
Status { word: "Deployed".into(), tone: Tone::Ok }.show(ui);

Cargo feature base of ocean-ui-core, ocean-ui-web and ocean-ui-native; available since 2026-10-29.

In App UI, the grid block draws it from YAML.

Props

NameTypeDefaultWhat
wordString—The state in one word, in sentence case.
toneToneNeutralNeutral, Ok, Warn, Bad, Info or Brand: the colour of the dot.

Accessibility

  • The dot is aria-hidden; the word is the text a screen reader reads.
  • Colour never carries the state alone, so the word must name it.
  • It takes no focus and no clicks.

Related

Markdown

The same page as Markdown, for an agent or a pull request.

Search

esc

Components

Blocks

Screens built from blocks

The Ocean app

Ocean Base console