Bento Grid
spectrumui/bento-gridFreeComponent
A premium interactive Bento Grid component
Install it
npx shadcn@latest add https://ui.spectrumhq.in/r/bento-grid.jsonSource
1import { cn } from "@/lib/utils"2import { motion } from "framer-motion"3import React, { ReactNode } from "react"45export interface BentoGridProps {6 className?: string7 children?: ReactNode8}910const containerVariants = {11 hidden: {},12 visible: {13 transition: {14 staggerChildren: 0.1,15 },16 },17}1819export function BentoGrid({ className, children }: BentoGridProps) {20 return (21 <motion.div22 variants={containerVariants}23 initial="hidden"24 whileInView="visible"25 viewport={{ once: true, margin: "-50px" }}26 className={cn(27 "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 w-full max-w-7xl mx-auto",28 className29 )}30 >31 {children}32 </motion.div>33 )34}
What it pulls in
npm packages
Files it writes
More from spectrumui
All 182 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | spectrumui | Components | Free | no deps | |
| Alert demoalert-1 | spectrumui | Components | Free | 1 dep | |
| Alert 2alert-2 | spectrumui | Components | Free | no deps | |
| Alert 3alert-3 | spectrumui | Components | Free | 1 dep | |
| Alert 4alert-4 | spectrumui | Components | Free | 1 dep | |
| Animated Cardanimated-card | spectrumui | Components | Free | 1 dep · 2 files | |
| Animated Draweranimated-drawer | spectrumui | Components | Free | 4 deps | |
| Animated SVG Chartanimated-SVG-chart | spectrumui | Components | Free | 1 dep |
