Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

🐛 fix: bento styles

Dillion Verma9a029cbc62e1
diff --git a/registry/components/example/bento-demo-vertical.tsx b/registry/components/example/bento-demo-vertical.tsx
index 323c050a..6d46c7b3 100644
--- a/registry/components/example/bento-demo-vertical.tsx
+++ b/registry/components/example/bento-demo-vertical.tsx
@@ -13,6 +13,7 @@ const features = [
name: "Save your files",
description: "We automatically save your files as you type.",
href: "/",
+ cta: "Learn more",
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",
},
@@ -21,6 +22,7 @@ const features = [
name: "Full text search",
description: "Search through all your files in one place.",
href: "/",
+ cta: "Learn more",
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",
},
@@ -29,6 +31,7 @@ const features = [
name: "Multilingual",
description: "Supports 100+ languages and counting.",
href: "/",
+ cta: "Learn more",
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",
},
@@ -37,6 +40,7 @@ const features = [
name: "Calendar",
description: "Use the calendar to filter your files by date.",
href: "/",
+ cta: "Learn more",
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",
},
@@ -46,6 +50,7 @@ const features = [
description:
"Get notified when someone shares a file or mentions you in a comment.",
href: "/",
+ cta: "Learn more",
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",
},
diff --git a/registry/components/example/bento-demo.tsx b/registry/components/example/bento-demo.tsx
index 915c90a1..c2dbcdbf 100644
--- a/registry/components/example/bento-demo.tsx
+++ b/registry/components/example/bento-demo.tsx
@@ -47,6 +47,7 @@ const features = [
name: "Save your files",
description: "We automatically save your files as you type.",
href: "/",
+ cta: "Learn more",
className: "col-span-3 lg:col-span-1",
background: (
<Marquee
@@ -81,6 +82,7 @@ const features = [
name: "Full text search",
description: "Search through all your files in one place.",
href: "/",
+ cta: "Learn more",
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">
@@ -104,6 +106,7 @@ const features = [
name: "Multilingual",
description: "Supports 100+ languages and counting.",
href: "/",
+ cta: "Learn more",
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" />
@@ -115,6 +118,7 @@ const features = [
description: "Use the calendar to filter your files by date.",
className: "col-span-3 lg:col-span-1",
href: "/",
+ cta: "Learn more",
background: (
<Calendar
mode="single"
diff --git a/registry/components/magicui/bento-grid.tsx b/registry/components/magicui/bento-grid.tsx
index 859e97dd..8cf67c22 100644
--- a/registry/components/magicui/bento-grid.tsx
+++ b/registry/components/magicui/bento-grid.tsx
@@ -29,6 +29,7 @@ const BentoCard = ({
Icon,
description,
href,
+ cta,
}: {
name: string;
className: string;
@@ -36,6 +37,7 @@ const BentoCard = ({
Icon: any;
description: string;
href: string;
+ cta: string;
}) => (
<div
key={name}
@@ -50,7 +52,7 @@ const BentoCard = ({
>
<div>{background}</div>
<div className="pointer-events-none z-10 flex transform-gpu flex-col gap-1 p-6 transition-all duration-300 group-hover:-translate-y-10">
- <Icon className="h-12 w-12 transform-gpu text-neutral-700 transition-all duration-300 ease-in-out group-hover:scale-75" />
+ <Icon className="h-12 w-12 origin-left transform-gpu text-neutral-700 transition-all duration-300 ease-in-out group-hover:scale-75" />
<h3 className="text-xl font-semibold text-neutral-700 dark:text-neutral-300">
{name}
</h3>
@@ -64,7 +66,7 @@ const BentoCard = ({
>
<Button variant="ghost" asChild size="sm" className="pointer-events-auto">
<a href={href}>
- Learn more
+ {cta}
<ArrowRightIcon className="ml-2 h-4 w-4" />
</a>
</Button>