Status Bar
A thin strip for the bottom of an app window, with start, middle and end content.
<arc-status-bar>Overview
StatusBar is a 28px strip for the bottom of an app window, like the one in a code editor. Text is in --font-mono at the small text size, in the muted color.
It has three slots. prefix is pinned to the start edge, suffix to the end edge, and the default slot is centered in the space between them.
position="static" (the default) keeps the bar in the page flow. position="fixed" pins it to the bottom of the viewport with z-index: 100. The bar has role="status", so screen readers announce changes to its text.
Guidelines
Do
- Put cursor position, line numbers or encoding in the `prefix` slot
- Put connection status, sync state or a version in the `suffix` slot
- Use the default slot for short messages such as "Saved" or "Building..."
- Set `position="fixed"` when the bar should stay in view while the page scrolls, and pad the bottom of the page by 28px so it doesn't cover content
Don't
- Don't use it as primary navigation. Use TopBar or Toolbar
- Don't put buttons or form controls in it. Keep it to information
- Don't change the 28px height
- Don't use it for notifications the reader must see. Use Toast or Alert
Features
- `--surface-base` background with a `--divider` border on top
Preview
Usage
<arc-status-bar>
<div slot="prefix">Ln 24, Col 15</div>
<div>UTF-8</div>
<div slot="suffix">100%</div>
</arc-status-bar>import { StatusBar } from '@arclux/arc-ui-react';
export default function Example() {
return (
<StatusBar>
<div slot="prefix">Ln 24, Col 15</div>
<div>UTF-8</div>
<div slot="suffix">100%</div>
</StatusBar>
);
}<script setup>
import { StatusBar } from '@arclux/arc-ui-vue';
</script>
<template>
<StatusBar>
<div slot="prefix">Ln 24, Col 15</div>
<div>UTF-8</div>
<div slot="suffix">100%</div>
</StatusBar>
</template><script>
import { StatusBar } from '@arclux/arc-ui-svelte';
</script>
<StatusBar>
<div slot="prefix">Ln 24, Col 15</div>
<div>UTF-8</div>
<div slot="suffix">100%</div>
</StatusBar>import { Component } from '@angular/core';
import { StatusBar } from '@arclux/arc-ui-angular';
@Component({
imports: [StatusBar],
template: `
<arc-status-bar>
<div slot="prefix">Ln 24, Col 15</div>
<div>UTF-8</div>
<div slot="suffix">100%</div>
</arc-status-bar>
`,
})
export class MyComponent {}import { StatusBar } from '@arclux/arc-ui-solid';
export default function Example() {
return (
<StatusBar>
<div slot="prefix">Ln 24, Col 15</div>
<div>UTF-8</div>
<div slot="suffix">100%</div>
</StatusBar>
);
}import { StatusBar } from '@arclux/arc-ui-preact';
export default function Example() {
return (
<StatusBar>
<div slot="prefix">Ln 24, Col 15</div>
<div>UTF-8</div>
<div slot="suffix">100%</div>
</StatusBar>
);
}<!-- Auto-generated by @arclux/prism — do not edit manually -->
<!-- arc-status-bar — requires status-bar.css + base.css (or arc-ui.css) -->
<div class="arc-status-bar">
<div class="status-bar" role="status">
<div class="status-bar__left">
</div>
<div class="status-bar__center">
StatusBar
</div>
<div class="status-bar__right">
</div>
</div>
</div><!-- Auto-generated by @arclux/prism — do not edit manually -->
<!-- arc-status-bar — self-contained, no external CSS needed -->
<div class="arc-status-bar" style="display: block; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; color: rgb(124, 124, 137)">
<div style="display: flex; align-items: center; height: 28px; padding: 0 8px; background: rgb(3, 3, 7); border-top: 1px solid rgb(24, 24, 30); gap: 8px" role="status">
<div style="display: flex; align-items: center; gap: 8px; flex-shrink: 0">
</div>
<div style="display: flex; align-items: center; gap: 8px; flex: 1; justify-content: center">
StatusBar
</div>
<div style="display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto">
</div>
</div>
</div>API
position'static' | 'fixed''static'- Controls whether the status bar flows with the document (static) or pins to the bottom of the viewport (fixed). Fixed mode sets bottom: 0, left: 0, right: 0 with z-index: 100.