Skip to content

Commit 66ed18e

Browse files
style(mdxui): refine dashboard layout with tailwind
1 parent 43c69d9 commit 66ed18e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { type JSX, type ReactNode } from 'react'
2+
3+
export interface DashboardLayoutProps {
4+
widgets?: ReactNode
5+
activity?: ReactNode
6+
className?: string
7+
}
8+
9+
export function DashboardLayout({ widgets, activity, className }: DashboardLayoutProps): JSX.Element {
10+
return (
11+
<div className={`grid gap-4 md:grid-cols-3 ${className ?? ''}`}>
12+
<section className='space-y-4 md:col-span-2'>{widgets}</section>
13+
<section className='space-y-4 md:col-span-1'>{activity}</section>
14+
</div>
15+
)
16+
}

0 commit comments

Comments
 (0)