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

cells

GraphCells

A small grid of filled and empty cells. Write `- fragments: 1 0 1 0 0 / 0 1 0 1 0`. To show a share out of 100, use Waffle.

use it
Good for a small grid of filled and empty cells.
instead
A share of a hundred cells is Waffle. A year of days is Activity.

two ways to learn

[ TWO WAYS TO LEARN ]

fragments

a system

<GraphCells title="TWO WAYS TO LEARN">

- fragments: 1 0 1 0 0 / 0 1 0 1 0 / 1 0 0 0 1
- a system: 1 1 1 1 1 / 1 1 1 1 1 / 1 1 1 1 1

</GraphCells>

install

command

coverage

[ COVERAGE ]

this week

<GraphCells title="COVERAGE">

- this week: 1 1 1 1 0 / 1 1 0 1 1 / 1 0 1 1 1

</GraphCells>
[ PROPS ]
PropTypeDefaultDescription
titlestring—Caption drawn on the top edge of the frame.
itemsCellGrid[]—Each item is a labeled 0/1 matrix. Optional when children are Markdown.
childrenMarkdown—- fragments: 1 0 1 0 0 / 0 1 0 1 0
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.