Fumadocs

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 { HomeLayout } from 'fumadocs-ui/home-layout';
 
export default function Layout({ children }) {
  return <HomeLayout>{children}</HomeLayout>;
}

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