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

score

GraphScore

Ratings drawn as dots. Write `- Docs: 4/5`; halves draw a half dot. Bold the row that matters and the rest fade. For actual versus target, use Bullet.

use it
Good for a review, an eval, or a vendor pick scored out of five.
instead
Actual versus a target is Bullet. A ranked list of numbers is Rank.

review

`label: value/max`. Halves draw a half dot. Bold the row that matters and the others recede.

[ REVIEW ]
  1. Performance4/5
  2. Accessibility5/5
  3. Docs2.5/5
  4. Motion4/5
<GraphScore title="REVIEW">

- Performance: 4/5
- Accessibility: 5/5
- **Docs: 2.5/5**
- Motion: 4/5

</GraphScore>

install

command

out of ten

The /n in the first row sets the dots. Glyphs swap the marks.

[ VENDORS ]
  1. Acme8/10
  2. Globex6.5/10
  3. Initech4/10
<GraphScore title="VENDORS" glyphs="ascii">

- Acme: 8/10
- Globex: 6.5
- Initech: 4

</GraphScore>
[ PROPS ]
PropTypeDefaultDescription
titlestring—Caption drawn on the top edge of the frame.
childrenMarkdown—A list of `label: value/max`. Bold is the row to read.
items{ label, value, max?, accent? }[]—Data form. Optional when children are Markdown.
maxnumber5Dots per row. Defaults to the /n in the first row.
glyphsGlyphs—Empty, half, and full dot. Default ○ ◐ ●.
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.