Skip to content

StatusBar ​

A bottom silent information strip: left/right segmented cells + clickable items + background activity spinner + warning/progress semantic colors. Distinct from oas-footer (a content footer) — the statusbar carries status vocabulary (aggregate counts, current selection, sync state).

Basic usage ​

The default slot holds left-segment cells (workspace-wide aggregate state); slot="end" holds the right segment (secondary/context items, pushed to the far end, mirrored in RTL). Numeric cells combine value + label (value uses tabular numerals). Fully empty cells (no label / value / icon / spinning) render nothing (the host gets data-empty and drops out entirely — no layout footprint, no leftover gap).

Scene counts, selection and sync state

Clickable cells (button) ​

The button boolean attribute renders the cell as a native button (keyboard reachable); clicking dispatches oas-item-click (detail { value, label }, listenable on the container or the host).

Cells that trigger commands

Click the clickable items in the left segment and watch the oas-item-click feedback.

Semantic colors and background activity (status / spinning) ​

The status semantic tiers: default / info / warning / error / progress — warning/error use background fills (reserved for special, necessary cases per status-bar convention), info/progress only tint the text; spinning shows a background-activity spinner (stopped under prefers-reduced-motion).

Status tiers

Icons (icon) ​

The icon attribute pulls from the built-in icon registry (@oas-ui/icons; unknown names render nothing).

Icon cells

RTL ​

With dir="rtl" on the container the component mirrors automatically: data-rtl hook + logical-properties-only layout; the end segment is pushed to the far end of the writing direction.

RTL mirror

API ​

oas-statusbar ​

Attributes ​

AttributeDescriptionTypeDefault
labelAccessible name (falls back to the i18n "Status bar" default)string—

Slots ​

NameDescription
defaultLeft-segment status cells (workspace-wide aggregate state)
endRight-segment status cells (secondary/context items, pushed to the far end of the writing direction)

CSS Variables ​

CSS VariableDefault
--oas-statusbar-bgvar(--oas-color-bg-elevated)
--oas-statusbar-height24px

oas-statusbar-item ​

Attributes ​

AttributeDescriptionTypeDefault
buttonRenders as a native button (clickable, keyboard reachable); read-only div semantics by defaultboolean—
iconBuilt-in icon name (@oas-ui/icons registry; unknown names render nothing)string—
labelText labelstring—
spinningBackground-activity spinner (stopped under prefers-reduced-motion)boolean—
statusSemantic color tier: default / info / warning / error / progress — warning/error use background fills (reserved for special, necessary cases), info/progress only tint the text; invalid values fall back to default with a one-time warningstringdefault
valueNumeric / status value (rendered in tabular numerals)string—

Events ​

EventDescription
oas-item-clickDispatched on click in button mode; detail { value, label }; bubbles + composed (listenable on the container or the host)

CSS Variables ​

CSS VariableDefault
--oas-statusbar-error-bgvar(--oas-color-danger)
--oas-statusbar-info-colorcolor-mix(in srgb, var(--oas-color-info-text) 88%, var(--oas-color-text-primary))
--oas-statusbar-item-height22px
--oas-statusbar-item-hover-bgvar(--oas-color-bg-hover)
--oas-statusbar-progress-colorvar(--oas-color-primary-text)
--oas-statusbar-warning-bgvar(--oas-color-warning)

Released under the MIT OR Apache-2.0 License.