-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add dynamic styling to grid common component
- Loading branch information
1 parent
93aaab6
commit 1760c04
Showing
1 changed file
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; | ||
} |