You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is already an open issue regarding Bento Grid not showing.
Actually the code on the github repo is slightely different than in the video. Try implementing the code from the github repo and also check this solution which worked for me. #19 (comment)
Hey so im having an issue cant seem to get the bento grid to even show up at the bottom for some reason
I have changed the code aswell
export const BentoGrid = ({
className,
children,
}: {
className?: string;
children?: React.ReactNode;
}) => {
return (
<div
className={cn(
// change gap-4 to gap-8, change grid-cols-3 to grid-cols-5, remove md:auto-rows-[18rem], add responsive code
"grid grid-cols-1 md:grid-cols-6 lg:grid-cols-5 md:grid-row-7 gap-4 lg:gap-8 mx-auto",
className
)}
>
{children}
);
};
export const BentoGridItem = ({
className,
title,
description,
header,
icon,
id,
}: {
className?: string;
title?: string | React.ReactNode;
description?: string | React.ReactNode;
header?: React.ReactNode;
icon?: React.ReactNode;
id:number;
}) => {
return (
<div
className={cn(
"row-span-1 relative rounded-3xl group/bento hover:shadow-xl transition duration-200 shadow-input dark:shadow-none p-4 dark:bg-black dark:border-white/[0.2] bg-white border border-transparent justify-between flex flex-col space-y-4 border",
className
)}
The text was updated successfully, but these errors were encountered: