Dashboard Layout
Responsive admin dashboard shell with collapsible sidebar navigation, breadcrumbs, top bar with search, and theme switching. Ready to drop your content into.
Next.jsDashboardsBuilt with v0
3.2k
Stars
18.7k
Installs
2
Deps
2
Comments
Install / Copy
npx create-freestack-module dashboard-layoutCode Preview
index.tsx
export function DashboardLayout({ children }) {
const [sidebarOpen, setSidebarOpen] = useState(true);
return (
<div className="flex h-screen">
<Sidebar open={sidebarOpen} onToggle={() => setSidebarOpen(!sidebarOpen)} />
<div className="flex flex-1 flex-col overflow-hidden">
<TopBar onMenuClick={() => setSidebarOpen(!sidebarOpen)} />
<main className="flex-1 overflow-y-auto p-6">
<Breadcrumbs />
{children}
</main>
</div>
</div>
);
}
function Sidebar({ open, onToggle }) {
return (
<aside className={`${open ? "w-64" : "w-16"} border-r bg-gray-50 transition-all`}>
{navItems.map((item) => (
<NavLink key={item.href} href={item.href} icon={item.icon} label={open ? item.label : ""} />
))}
</aside>
);
}AD
admin-builder1 week ago
This is my go-to starter for every admin panel. The sidebar collapse animation is smooth.
ST
startupdev4 days ago
Added dark mode in 5 minutes thanks to the next-themes integration. Great DX.
Related Modules
Magic Link Auth
Passwordless email authentication with Supabase. Includes login/signup pages, session management, protected route middleware, and email templates.
1.8kNext.js
Stripe Checkout
Complete Stripe checkout flow with subscription management, webhook handling, and customer portal integration. Includes pricing page component and usage-based billing support.
2.8kNext.js
RBAC System
Role-based access control with middleware enforcement, permission checking hooks, and admin UI for managing roles. Supports hierarchical roles and resource-level permissions.
1.6kNext.js