UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
🐛 fix: responsive fixes
Dillion Verma75d5545fa9f9
diff --git a/registry/components/example/bento-demo-vertical.tsx b/registry/components/example/bento-demo-vertical.tsxindex d95efab2..323c050a 100644--- a/registry/components/example/bento-demo-vertical.tsx+++ b/registry/components/example/bento-demo-vertical.tsx@@ -12,48 +12,48 @@ const features = [Icon: FileTextIcon,name: "Save your files",description: "We automatically save your files as you type.",- span: "row-start-1 row-end-4 col-start-2 col-end-3",href: "/",background: <img className="absolute -right-20 -top-20 opacity-60" />,+ className: "lg:row-start-1 lg:row-end-4 lg:col-start-2 lg:col-end-3",},{Icon: InputIcon,name: "Full text search",description: "Search through all your files in one place.",- span: "col-start-1 col-end-2 row-start-1 row-end-3",href: "/",background: <img className="absolute -right-20 -top-20 opacity-60" />,+ className: "lg:col-start-1 lg:col-end-2 lg:row-start-1 lg:row-end-3",},{Icon: GlobeIcon,name: "Multilingual",description: "Supports 100+ languages and counting.",- span: "col-start-1 col-end-2 row-start-3 row-end-4",href: "/",background: <img className="absolute -right-20 -top-20 opacity-60" />,+ className: "lg:col-start-1 lg:col-end-2 lg:row-start-3 lg:row-end-4",},{Icon: CalendarIcon,name: "Calendar",description: "Use the calendar to filter your files by date.",- span: "col-start-3 col-end-3 row-start-1 row-end-2",href: "/",background: <img className="absolute -right-20 -top-20 opacity-60" />,+ className: "lg:col-start-3 lg:col-end-3 lg:row-start-1 lg:row-end-2",},{Icon: BellIcon,name: "Notifications",description:"Get notified when someone shares a file or mentions you in a comment.",- span: "col-start-3 col-end-3 row-start-2 row-end-4",href: "/",background: <img className="absolute -right-20 -top-20 opacity-60" />,+ className: "lg:col-start-3 lg:col-end-3 lg:row-start-2 lg:row-end-4",},];export default async function BentoDemo() {return (- <BentoGrid className="grid-rows-3">+ <BentoGrid className="lg:grid-rows-3">{features.map((feature) => (<BentoCard key={feature.name} {...feature} />))}diff --git a/registry/components/example/bento-demo.tsx b/registry/components/example/bento-demo.tsxindex 6451e7ee..c1ec8264 100644--- a/registry/components/example/bento-demo.tsx+++ b/registry/components/example/bento-demo.tsx@@ -46,8 +46,8 @@ const features = [Icon: FileTextIcon,name: "Save your files",description: "We automatically save your files as you type.",- span: "col-span-3 lg:col-span-1",href: "/",+ className: "col-span-3 lg:col-span-1",background: (<MarqueepauseOnHover@@ -80,8 +80,8 @@ const features = [Icon: InputIcon,name: "Full text search",description: "Search through all your files in one place.",- span: "col-span-3 lg:col-span-2",href: "/",+ className: "col-span-3 lg:col-span-2",background: (<Command className="absolute right-10 top-10 w-[70%] origin-top translate-x-0 border transition-all duration-300 ease-out [mask-image:linear-gradient(to_top,transparent_40%,#000_100%)] group-hover:-translate-x-10"><CommandInput placeholder="Type a command or search..." />@@ -103,8 +103,8 @@ const features = [Icon: GlobeIcon,name: "Multilingual",description: "Supports 100+ languages and counting.",- span: "col-span-3 lg:col-span-2",href: "/",+ className: "col-span-3 lg:col-span-2",background: (<Globe className="top-0 h-[600px] w-[600px] transition-all duration-300 ease-out [mask-image:linear-gradient(to_top,transparent_30%,#000_100%)] group-hover:scale-105 sm:left-40" />),@@ -113,7 +113,7 @@ const features = [Icon: CalendarIcon,name: "Calendar",description: "Use the calendar to filter your files by date.",- span: "col-span-3 lg:col-span-1",+ className: "col-span-3 lg:col-span-1",href: "/",background: (<Calendardiff --git a/registry/components/magicui/bento-grid.tsx b/registry/components/magicui/bento-grid.tsxindex 5c1ae600..80c43431 100644--- a/registry/components/magicui/bento-grid.tsx+++ b/registry/components/magicui/bento-grid.tsx@@ -24,14 +24,14 @@ const BentoGrid = ({const BentoCard = ({name,- span,+ className,background,Icon,description,href,}: {name: string;- span: string;+ className: string;background: ReactNode;Icon: any;description: string;@@ -40,12 +40,12 @@ const BentoCard = ({<divkey={name}className={cn(- "group relative flex flex-col justify-between overflow-hidden rounded-xl",+ "group relative col-span-3 flex flex-col justify-between overflow-hidden rounded-xl",// light styles"bg-white [box-shadow:0_0_0_1px_rgba(0,0,0,.03),0_2px_4px_rgba(0,0,0,.05),0_12px_24px_rgba(0,0,0,.05)]",// dark styles"dark:bg-transparent dark:backdrop-blur-md dark:[border:1px_solid_rgba(255,255,255,.1)] dark:[box-shadow:0_-20px_80px_-20px_#ffffff1f_inset]",- span,+ className,)}><div>{background}</div>