We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43c69d9 commit 66ed18eCopy full SHA for 66ed18e
packages/mdxui/src/layouts/Dashboard.tsx
@@ -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