Skip to content
mdxcn is now part of Shadcn Labs. details

bullet

GraphBullet

An actual value against a target on one bar. The marker shows the target.

use it
Good when a number has a goal sitting on the same track.
instead
A single fill from 0 to 1 is Meter.

targets

[ BUDGET ]
  • Design42 / 40
  • Motion18 / 24
  • Docs9 / 12
<GraphBullet title="BUDGET">

- Design: 42 / 40
- Motion: 18 / 24
- Docs: 9 / 12

</GraphBullet>

install

command

capacity

[ LOAD ]
  • CPU72 / 80
  • RAM34 / 64
  • SSD91 / 90
<GraphBullet title="LOAD">

- CPU: 72 / 80 of 100
- RAM: 34 / 64 of 100
- SSD: 91 / 90 of 100

</GraphBullet>
[ PROPS ]
PropTypeDefaultDescription
titlestring—Caption drawn on the top edge of the frame.
itemsBulletItem[]—label, value, optional target, max, and display. Optional when children are Markdown.
childrenMarkdown—- CPU: 72 / 80
ticksnumber20Track width in characters, not counting the brackets.
glyphs"shade" | "ascii" | "hash" | "bar" | string[]"shade"Character set. shade is ·░▒▓█. ascii is .- =#@. Pass a preset or your own characters.
palette"mono" | "duo" | "multi""mono"mono is one accent plus muted. duo paints the second series with --graph-accent-2. multi cycles three accents.
cornerstring"+"Character at each corner of the frame.
frame"box" | "corners" | "rule" | "none""box"box draws the dashed border. corners keeps only the corner marks. rule draws dashed lines above and below. none drops the border and padding, and puts the title above the content.
classNamestring—Passed to the outer frame.