suiss/ui · Block
Bento Stats
A dark bento grid of headline product stats, with a photo tile and an animated charging bar.
Bento Stats is an open-source block from suiss/ui for React. The @esuiss/ui CLI copies its source into your project, so you own the code.
A dark bento grid of headline numbers: a full-bleed photo tile, two tiles with large gradient figures and a wide charging tile whose Progress bar fills when the section loads. Tiles stack on mobile and form a three-column grid on desktop. It always renders dark, whatever the site theme, which suits a dramatic stats or specs band on a product page.
Installation
CLI
Works in any project with a components.json. See Installation for the one-line registry setup. Or use the suiss/ui CLI:
Manual
-
Add the pieces it builds on: Progress.
-
Copy the source into
components/blocks/bento-stats.tsx:
- Update the import paths to match your project.
Usage
Edit the copy and figures inline and swap the photo in the image constant. The bar animates from 0 to 50 shortly after mount; change the target to match your claim.
Notes
The photo tile is a CSS background with no text alternative, so keep its heading meaningful. The image is an Unsplash placeholder.