Skip to content

Priority Bars

Priority as three rising bars, with an orange exclamation square for urgent.

On this page
Used for
  • Issue and task priority
  • Row leading slots
  • Detail headers

Examples

Installation

npx knowns-ui@latest add priority-bars
For Claude Code, Cursor or Codex: installs it and wires the props to your own data.

Props

priority
"none" | "low" | "medium" | "high" | "urgent"
Low fills one bar, medium two, high three; urgent is the orange square.
label
string | false
Defaultby level
The spoken label; false hides it when a word is beside the icon.

What it handles

  1. 01Draws priority as three rising bars: low fills one, medium two, high three.
  2. 02Shows urgent as an orange exclamation square and none as three faint bars.
  3. 03Speaks the level as an image label, or hides it when a word sits beside the icon.
  4. 04Colours low, medium and high by level with --kn-priority-low, -medium and -high (light and dark defaults built in); bars not reached stay as faint ghosts.

States

Any change
It updates at once
none
Hover or focus
Nothing moves; it is not interactive
none

Works with

When to use

When to use

  • Priority in a list row or a task header: low, medium, high, urgent.

When not to use

  • A state such as done or blocked: use Status Dot.
  • A label with a word: use Badge.

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Priority Bars to my app and wire it to my own data.
  • I need priority in a list row or a task header: low, medium, high, urgent. Set that up with the Knowns UI Priority Bars.
  • Which Priority Bars props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "priority-bars" }) and search_docs({ query: "priority bars" }).

Need help?

Stuck on Priority Bars, or found something off? We read every message.