dot-matrix value grid (shares, milestones, leaders).

Live preview

42/60Traffic

Install

From your site folder, run:

jprot add DotGrid

That downloads the self-contained component into theme/components/DotGrid.js,

where it is picked up automatically — the same way as any built-in component.

To remove it later, just delete that file.

Use it as a homepage section

Add an entry to the sections: list in jprot.config.js:

sections: [
  { component: 'DotGrid', title: 'DotGrid' },
]

Use it inside a page

On its own line in any Markdown file, passing the props:

:::DotGrid label="Traffic" value="42" max="60"

Props

PropTypeNote
labelstringcaption
valuenumberfilled dots
maxnumbertotal dots

↩ Back to all elements