Home Layout

Shared layout for other pages

Usage

Add a navbar and search dialog across other pages.

It doesn't contain a sidebar, a page tree is not required.

import { Layout } from 'fumadocs-ui/layout';
 
export default function HomeLayout({ children }) {
  return <Layout>{children}</Layout>;
}

Create a Route Group to share the same layout across multiple pages.

page.tsx
layout.tsx

Last updated on

On this page

Edit on Github