Application status bar for displaying live status information at the bottom of editor interfaces. Supports sectioned layout (left/right), interactive and static items, badge indicators, and color variants for different application states.
Import
import { StatusBar } from ' entangle-ui ' ;
Usage
< StatusBar.Section side = " left " >
< StatusBar.Item icon = { < BranchIcon /> } > main </ StatusBar.Item >
< StatusBar.Item icon = { < SyncIcon /> } onClick = { handleSync } >
< StatusBar.Section side = " right " >
< StatusBar.Item > Ln 42, Col 8 </ StatusBar.Item >
< StatusBar.Item onClick = { handleLanguage } > TypeScript </ StatusBar.Item >
Compound Components
Component Purpose StatusBar.SectionContainer for grouping items on the left or right side StatusBar.ItemIndividual status item — renders as a button when onClick is provided, otherwise as a span
Variants
The variant prop changes the status bar’s background color to communicate application state.
< StatusBar variant = " default " >
< StatusBar.Section side = " left " >
< StatusBar.Item > Ready </ StatusBar.Item >
< StatusBar variant = " error " >
< StatusBar.Section side = " left " >
< StatusBar.Item > Build Failed </ StatusBar.Item >
< StatusBar variant = " accent " >
< StatusBar.Section side = " left " >
< StatusBar.Item > Remote Connected </ StatusBar.Item >
Variant Use case defaultNormal application state (default) errorError or critical state (e.g., build failure) accentActive or special state (e.g., remote debugging)
Sizes
< StatusBar size = " sm " > { /* Compact */ } </ StatusBar >
< StatusBar size = " md " > { /* Standard */ } </ StatusBar >
Size Use case smCompact status bar (default) mdStandard height
Interactive Items
When an onClick handler is provided, StatusBar.Item renders as a <button> with hover and focus styles. Without onClick, it renders as a static <span>.
< StatusBar.Section side = " left " >
< StatusBar.Item icon = { < CheckIcon /> } > No Errors </ StatusBar.Item >
< StatusBar.Item onClick = { handleWarnings } icon = { < WarningIcon /> } >
Badges
Items support badge indicators. Pass a number for a numeric badge, or true for a dot indicator.
< StatusBar.Section side = " left " >
< StatusBar.Item icon = { < BellIcon /> } badge = { 5 } onClick = { handleNotifications } >
< StatusBar.Item icon = { < UpdateIcon /> } badge = { true } onClick = { handleUpdate } >
Sections
Use StatusBar.Section to align items to the left or right side of the status bar. Items within each section are laid out inline.
< StatusBar.Section side = " left " >
< StatusBar.Item > Left-aligned items </ StatusBar.Item >
< StatusBar.Section side = " right " >
< StatusBar.Item > Right-aligned items </ StatusBar.Item >
Props
StatusBar
Prop Type Default Description size 'sm' | 'md' 'sm' Size of the status bar. variant 'default' | 'error' | 'accent' 'default' Color variant indicating application state. children ReactNode — StatusBar.Section components. className string — Additional CSS class names. style CSSProperties — Inline styles. testId string — Test identifier for automated testing. ref Ref<HTMLDivElement> — Ref to the root element.
StatusBar.Section
Prop Type Default Description side 'left' | 'right' 'left' Which side of the status bar the section aligns to. children ReactNode — StatusBar.Item components. className string — Additional CSS class names. style CSSProperties — Inline styles. testId string — Test identifier for automated testing. ref Ref<HTMLDivElement> — Ref to the section element.
StatusBar.Item
Prop Type Default Description children ReactNode — Item label text. icon ReactNode — Icon element displayed before the label. onClick () => void — Click handler. When provided, the item renders as a button instead of a span. title string — Tooltip text shown on hover. badge number | boolean — Badge indicator. A number shows a count badge. `true` shows a dot badge. `false` or `undefined` hides the badge. disabled boolean false Whether the item is disabled (only applies to interactive items). className string — Additional CSS class names. style CSSProperties — Inline styles. testId string — Test identifier for automated testing. ref Ref<HTMLElement> — Ref to the item element (HTMLButtonElement when clickable, HTMLSpanElement when static).
Accessibility
The root element has role="status" with aria-live="polite", so screen readers announce content changes without interrupting the user
Interactive items render as native <button> elements with full keyboard support
Static items render as <span> elements
Use the title prop on items to provide additional context via tooltip