Bento Grid

Bento grid stats section with box layout and animations.

Main Features of Bento Grid

How to Use Bento Grid in Next.js

Installation Guide for Bento Grid

Props

Customize the component with these props

PropertyTypeDefaultDescription
backgroundColor
string#171717Background color (hex, rgb, or hsl).
mainStat
{value: number, suffix?: string, label?: string, icon?: LucideIcon, iconColor?: string}{}Main stat item with value, optional suffix, label, icon, and iconColor.
secondaryStats
Array<{value: number, suffix?: string, label?: string, icon?: LucideIcon, iconColor?: string}>[]Array of secondary stat items.
mainCardBgColor
string#4f46e5Main card background color.
mainCardBlurColor
stringrgba(255,255,255,0.1)Main card blur effect color.
mainCardLabelColor
string#c7d2feMain card label text color.
mainCardValueColor
string#ffffffMain card value text color.
mainCardChartBgColor
stringrgba(0,0,0,0.2)Main card chart background color.
mainCardChartBarColor
stringrgba(255,255,255,0.5)Main card chart bar color.
secondaryCardBgColor
string#262626Secondary card background color.
secondaryCardBorderColor
stringrgba(255,255,255,0.05)Secondary card border color.
secondaryCardLabelColor
string#a3a3a3Secondary card label text color.
secondaryCardValueColor
string#ffffffSecondary card value text color.
secondaryCardIconBgColor
string#404040Secondary card icon background color.
secondaryCardIconColor
string#818cf8Secondary card icon color.
whiteCardBgColor
string#ffffffWhite card background color.
whiteCardTextColor
string#000000White card text color.
whiteCardSubtextColor
string#525252White card subtext color.
gradientCardBgColor
string#262626Gradient card background color.
gradientCardTextColor
string#ffffffGradient card text color.
gradientCardSubtextColor
string#a3a3a3Gradient card subtext color.

When to Use

Excellent for complex products, SaaS dashboards, and Next.js applications that want a high-density, modular information layout. Use this React component for a bento-style stats section with varying card sizes, icons, and integrated chart visuals.

Best Practices

Maintain consistent spacing within your design system by aligning the grid gaps with your primary site layout. Follow React best practices by using high-contrast active highlights. Optimize for performance by managed the icon rendering for the secondary cards.

Why This Component Matters in Modern UI Development

Bento grids allow you to showcase both hard numbers and illustrative icons in a unified digital architecture. This production-ready UI component helpsคุณ build an interface that feels structured and modern.

Frequently Asked Questions

QHow does the mosaic work?

It uses a professional CSS grid where cards are sized differently (Bento style) to create a sense of hierarchy among your metrics.

QCan I add more cards?

The layout is optimized for one main feature card and multiple secondary metrics to ensure clear visual focus.

QAre the charts functional?

The component features stylized chart elements to represent data trends visually without the overhead of a full charting library.

Bento Grid - React Stats Counter & Metrics | Uilora