Skip to content

StatusLine

Stable

One quiet line of status for the top of a screen, such as Case, Flipkart, an amount and Waiting.

Also known as status bar, status text, breadcrumb

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

With a current item

Status: CaseFlipkart₹2,340Waiting

The current state keeps the normal ink and a heavier weight. The others are muted.

When to use it

Tells the person where they are and what state it is in, in one line that never takes more than one row.

Made of: Hidden Status prefix · Items · Separators

Use it for

  • The top of a screen, as a sticky header child.
  • A case line with a name, an amount and its state.
  • A breadcrumb-like summary that does not need links.

Not for

  • A single state label inside a row: use Badge.
  • Moving between sections: use Tabs.

Do and avoid

Status: CaseFlipkart₹2,340Waiting
Do. One short line, with the current state marked by weight.
Status: CaseFlipkart₹2,340Waiting
Avoid. The state is marked only by colour, which not everyone can see.

Do

  • Keep each item to a word or two, with the state last.
  • Put the line in a sticky header so it stays in view.
  • Give the width from the parent. It shrinks and truncates by itself.

Avoid

  • Do not let it wrap to two lines.
  • Do not use it to announce changes. It is a plain element, not a live region.
  • Do not use colour to show the state. The current item is marked by weight and aria-current.

On a phone

  • It stays on one line and cuts the end with an ellipsis, so on a phone the last items can disappear.
  • Nothing shows the cut text, so put the current state early or keep the items short.
  • It has no tap action.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started