BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/zyeon/bento-grid

Bento Grid

zyeon/bento-grid
FreeComponent

A responsive tiling layout of mixed-size feature cards, with a pointer-tracked glow and honest click affordances.

Install it

npx shadcn@latest add https://ui.zyeon.ai/r/bento-grid.json

Source

src/registry/ui/bento-grid.tsxui.zyeon.ai/r/bento-grid.json · first 6 KB
1"use client"
2
3import * as React from "react"
4import { ArrowUpRight } from "lucide-react"
5import { cn } from "@/lib/utils"
6
7const REDUCED_MOTION = "(prefers-reduced-motion: reduce)"
8
9function subscribeReducedMotion(callback: () => void) {
10 const mq = window.matchMedia(REDUCED_MOTION)
11 mq.addEventListener("change", callback)
12 return () => mq.removeEventListener("change", callback)
13}
14
15function useReducedMotion() {
16 return React.useSyncExternalStore(
17 subscribeReducedMotion,
18 () => window.matchMedia(REDUCED_MOTION).matches,
19 () => false,
20 )
21}
22
23type Columns = 2 | 3 | 4
24type Span = 1 | 2 | 3
25
26// Tailwind only sees class names that exist as literal strings in the source,
27// so every column count and span lives in a lookup table — `col-span-${n}`
28// would compile away to nothing.
29const COLUMNS_CLASS: Record<Columns, string> = {
30 2: "grid-cols-1 sm:grid-cols-2",
31 3: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
32 4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4",
33}
34
35// Spans only kick in once there is more than one column: on phones every card
36// is full width anyway, and a span wider than the grid would just be clamped.
37const COL_SPAN_CLASS: Record<Span, string> = {
38 1: "",
39 2: "sm:col-span-2",
40 3: "sm:col-span-2 lg:col-span-3",
41}
42
43const ROW_SPAN_CLASS: Record<Span, string> = {
44 1: "",
45 2: "sm:row-span-2",
46 3: "sm:row-span-3",
47}
48
49export interface BentoGridProps extends React.HTMLAttributes<HTMLDivElement> {
50 /** Column count from the lg breakpoint up; always 1 on phones and 2 on tablets. */
51 columns?: Columns
52 /** Gutter in px, applied to both axes. */
53 gap?: number
54}
55
56/** The tiling container: a responsive grid with content-sized rows. */
57export const BentoGrid = React.forwardRef<HTMLDivElement, BentoGridProps>(
58 ({ columns = 3, gap = 16, className, style, children, ...props }, ref) => (
59 <div
60 className={cn("grid auto-rows-[minmax(8rem,auto)]", COLUMNS_CLASS[columns], className)}
61 ref={ref}
62 style={{ gap, ...style }}
63 {...props}
64 >
65 {children}
66 </div>
67 ),
68)
69
70BentoGrid.displayName = "BentoGrid"
71
72// `title` is widened from the native tooltip attribute to a full ReactNode:
73// on a bento tile it is the card's heading, not a hover string.
74export interface BentoCardProps extends Omit<React.HTMLAttributes<HTMLElement>, "title"> {
75 title: React.ReactNode
76 description?: React.ReactNode
77 /** Decorative glyph, rendered in a muted chip above the title. */
78 icon?: React.ReactNode
79 colSpan?: Span
80// … truncated

What it pulls in

npm packages

  • lucide-react

Other registry items

  • utils

Files it writes

  • src/registry/ui/bento-grid.tsx

Facts

Registry
zyeon
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-12
Last confirmed
yesterday

Go to the source

ui.zyeon.ai Zyeon-AI/zyeon-ui-components on GitHub Raw registry item This item as JSON

More from zyeon

All 893 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
A/B Test Resultab-test-resultzyeonComponentsPaid2 deps · 2 files
AccordionaccordionzyeonComponentsFree1 dep
Activity Feedactivity-feedzyeonComponentsFree2 deps · 2 files
Activity Heatmapactivity-heatmapzyeonComponentsPaid1 dep · 2 files
Address Formaddress-formzyeonComponentsPaid1 dep
Agent Graphagent-graphzyeonComponentsFree2 deps · 2 files
Agent Handoffagent-handoffzyeonComponentsFree1 dep
Agent Inboxagent-inboxzyeonComponentsFree2 deps · 2 files

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex