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
- Design42 / 40
- Motion18 / 24
- Docs9 / 12
<GraphBullet title="BUDGET">
- Design: 42 / 40
- Motion: 18 / 24
- Docs: 9 / 12
</GraphBullet>install
command
capacity
- 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>| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | — | Caption drawn on the top edge of the frame. |
| items | BulletItem[] | — | label, value, optional target, max, and display. Optional when children are Markdown. |
| children | Markdown | — | - CPU: 72 / 80 |
| ticks | number | 20 | Track 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. |
| corner | string | "+" | 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. |
| className | string | — | Passed to the outer frame. |