Bento Grid for React
A glassmorphism bento grid for React whose cells run live mini-demos built from real SheenUI components.
npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/bento-grid.jsonEverything you need, already moving
Live components, not screenshots. Try them.
Charts that move with your data
Sparklines draw themselves in and morph between periods. Every number counts up.
Toasts that stack
Newest in front, older ones peek out behind. Hover or focus to fan them out.
One-time codes
Auto-advance, paste a whole code, shake on a miss.
Real glass, live
Frost, tint and float the tile and watch the blur react.
Built for teams
Presence, avatars and invites, with springs that feel physical and stay still for anyone who asks for less motion.
BentoGridBentoCellFeatureBentoBentoOtpDemoBentoChartDemo- +13 more
- +10 more
Feature bento
The ready-made block. Every cell is interactive: pick a period, hover or focus the toasts to fan them out, type 2468, flip the switches, invite a teammate.
Everything you need, already moving
Live components, not screenshots. Try them.
Charts that move with your data
Sparklines draw themselves in and morph between periods. Every number counts up.
Toasts that stack
Newest in front, older ones peek out behind. Hover or focus to fan them out.
One-time codes
Auto-advance, paste a whole code, shake on a miss.
Real glass, live
Frost, tint and float the tile and watch the blur react.
Built for teams
Presence, avatars and invites, with springs that feel physical and stay still for anyone who asks for less motion.
import { FeatureBento } from "@/components/sheenui/blocks/bento-grid";
// Package build (after the first npm release, or a packed tarball): import { FeatureBento } from "@sheenui/theme";
<FeatureBento
title="Everything you need, already moving"
description="Live components, not screenshots. Try them."
/>Files to copy
14 folders · 23 files · 4 packages
- From
theme/src/ blocks/bento-grid.tsxcomponents/avatar/components/badge/components/button/components/charts/{chart-utils.ts, sparkline.tsx}components/glass-card/components/otp-input/components/spinner/components/switch/blocks/bento-grid/hooks/{use-controllable.ts, use-direction.ts, use-intersection.ts, use-latest.ts, use-magnetic.ts, use-media-query.ts, use-preferences.ts}motion/{gate.ts, light-follower.ts, presets.ts, tokens.ts}lib/{cn.ts, field-control-shell.tsx, form.ts, heading.ts, initials.ts, math.ts, motion-props.ts, state-light.tsx, warn-once.ts}styles/
- shadcn CLI
npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/bento-grid.jsonRegistry item: bento-grid. The styles need the Tailwind v4 glass UI setup.- Packages
pnpm add @base-ui/react clsx motion tailwind-merge
Compose your own
BentoGrid lays cells out by its own width (1, 2, then 3 columns); spans shrink with it, so nothing overflows. Put any visual in a cell, built-in demos included.
Revenue at a glance
A count-up total, a change badge and a trend line that redraws for each period.
Open analyticsPasswordless
Sign in with a code. This one is 1357.
Tune the glass
Frost, tint and float.
Your team, live
See who is here and bring in more people.
Any visual
Cells take any content: artwork, a chart, a product shot.
import { BentoGrid, BentoCell } from "@/components/sheenui/blocks/bento-grid";
import { BentoChartDemo, BentoOtpDemo, BentoSwitchDemo, BentoAvatarDemo } from "@/components/sheenui/blocks/bento-grid/demos";
// Package build (after the first npm release, or a packed tarball): import { BentoGrid, BentoCell, BentoChartDemo, BentoOtpDemo, BentoSwitchDemo, BentoAvatarDemo } from "@sheenui/theme";
<BentoGrid>
<BentoCell index={0} colSpan={2} title="Revenue at a glance" description="…" visual={<BentoChartDemo />} href="#demo-analytics" cta="Open analytics" />
<BentoCell index={1} title="Passwordless" description="…" visual={<BentoOtpDemo code="1357" />} />
<BentoCell index={2} title="Tune the glass" visual={<BentoSwitchDemo />} />
<BentoCell index={3} title="Your team, live" visual={<BentoAvatarDemo />} />
<BentoCell index={4} title="Any visual" visual={<img src="/artwork.svg" alt="" className="size-full object-cover" />} />
</BentoGrid>FeatureBento
FeatureBentoLabels keys and English defaults (15)
BentoGrid
BentoCell
Demos
BentoAvatarDemo props
BentoAvatarLabels keys and English defaults (5)
BentoChartDemo props
BentoChartLabels keys and English defaults (6)
BentoOtpDemo props
BentoOtpLabels keys and English defaults (5)
BentoSwitchDemo props
BentoSwitchLabels keys and English defaults (5)
BentoToastDemo props
BentoToastLabels keys and English defaults (2)
Keyboard
Accessibility
- BentoGrid is a plain layout <div> with no semantics; each cell carries its own heading and text.
- The avatar group has a text name and “+N” has a long form for screen readers; changes are announced.
- The switch demo uses real switches with visible labels.
All exports on this page
BentoAvatarDemo— A bento visual: an avatar group where an "Invite teammate" button adds people one by one and a sentence says who is editing.BentoCell— Use it inside a BentoGrid.BentoChartDemo— A bento visual: a revenue total that counts up beside a sparkline, with period buttons that change both.BentoGrid— Props (see BentoGridProps): children (required), className (the size container) and gridClassName (the grid itself: gap, row height).BentoOtpDemo— A bento visual: a working one-time-code field with a hint, a success state and a wrong-code shake.BentoSwitchDemo— A bento visual: three switches (frosted glass, accent tint, float) that change a live glass tile over coloured shapes, so the blur is easy to see.BentoToastDemo— A bento visual: a stack of glass notifications that plays three on its own, spreads on hover or focus, and has a button to send another.FeatureBento— The ready-made feature section: a heading and a BentoGrid of cells, each with a live mini-demo (chart, toasts, OTP, switches, avatars).defaultBentoAvatarLabels— The English strings of the avatar tile; pass labels to override any of them.defaultBentoChartLabels— The English strings of the chart tile; pass labels to override any of them.defaultBentoOtpLabels— The English strings of the one-time-code tile; pass labels to override any of them.defaultBentoSwitchLabels— The English strings of the glass-switch tile; pass labels to override any of them.defaultBentoToastLabels— The English strings of the toast tile; pass labels to override any of them.defaultFeatureBentoLabels— The English strings of FeatureBento; pass labels to override any of them.useBentoCellVisible— True while the surrounding BentoCell is on screen: pause loops and timers when it's false.
When to use the bento grid
- Use BentoGrid as a glassmorphism bento grid for a landing page feature section, where cells of different sizes show a chart, a notification stack, an OTP field and a switch preview instead of a plain three-column list. Use it as a bento features section in Tailwind on a landing page.
- Use it for a product overview inside a documentation site, giving big cells colSpan 2 or rowSpan 2 and letting the grid collapse to one column on narrow containers.
- Use BentoCell with a visual prop to mount heavy demos lazily, since the visual only appears the first time its cell scrolls into view.
- Skip it when the items are uniform records that people scan or sort, such as team members or invoices; a simple card grid or a data table is clearer than a bento layout.
- Pair it with Sparkline, Avatar, Badge and Switch inside cells, and with the ready-made BentoChartDemo, BentoToastDemo and BentoOtpDemo visuals when you want a quick start.
Frequently asked questions
Related pages
20 blocks pages in all: browse them on All blocks.
By Lokendra Singh Rathore (GitHub, opens in a new tab). Published , updated .