Skip to content

Commit

Permalink
feat: add dynamic styling to grid common component
Browse files Browse the repository at this point in the history
  • Loading branch information
moonbamijam committed Apr 28, 2024
1 parent 93aaab6 commit 1760c04
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions components/common/Grid.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
export default function Grid({ children }: { children: React.ReactNode }) {
return (
<div className="grid lg:grid-cols-2 premium:grid-cols-3 gap-[50px]">
{children}
</div>
);
type Props = {
children: React.ReactNode;
gridStyles?: string;
};

export default function Grid({ children, gridStyles }: Props) {
return <div className={`grid ${gridStyles}`}>{children}</div>;
}

0 comments on commit 1760c04

Please sign in to comment.