Open this example in the interactive library
Source code
// app/studio/layout.tsx
import type { ReactNode } from "react";
import Link from "next/link";
export default function StudioSidebarLayout({ children }: { children: ReactNode }) {
return (
<div style={{ display: "flex", flexWrap: "wrap", gap: "2rem" }}>
<aside>
<Link href="/studio">Studio home</Link>
</aside>
<main style={{ flex: "1 1 22rem", minWidth: 0 }}>{children}</main>
</div>
);
}
