compact inline numbers joined by thin separators.
2.1k stars
40k downloads
98% would reuse
Install
From your site folder, run:
jprot add StatsInlineThat downloads the self-contained component into theme/components/StatsInline.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: 'StatsInline', title: 'StatsInline' },
]Use it inside a page
On its own line in any Markdown file, passing the props:
:::StatsInline items='[{"value":"2.1k","label":"stars"},{"value":"40k","label":"downloads"},{"value":"98%","label":"would reuse"}]'Props
| Prop | Type | Note |
|---|---|---|
items | array | [{ value, label }] |