Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bento grid not rendering for me #25

Open
sebo6921 opened this issue Jul 7, 2024 · 1 comment
Open

Bento grid not rendering for me #25

sebo6921 opened this issue Jul 7, 2024 · 1 comment

Comments

@sebo6921
Copy link

sebo6921 commented Jul 7, 2024

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
)}

@sam-arth07
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants