# Fumadocs UI (the default theme of Fumadocs): Layouts
URL: /docs/ui/layouts
Source: https://raw.githubusercontent.com/fuma-nama/fumadocs/refs/heads/main/apps/docs/content/docs/ui/layouts/index.mdx

A list of layout components.

## Overview [#overview]

Fumadocs UI provides essential layouts to display content.

- [Layout Links](/docs/ui/layouts/links): Navigation configurations on all layouts.
- [Navbar](/docs/ui/layouts/nav): Navbar/header configurations.
- [Docs Layout](/docs/ui/layouts/docs): The layout of documentation
- [Flux Layout](/docs/ui/layouts/flux): An aggressively minimal layout for docs
- [Glass Layout](/docs/ui/layouts/glass): A docs layout with a floating, translucent sidebar and header
- [Home Layout](/docs/ui/layouts/home-layout): Shared layout for other pages
- [Notebook Layout](/docs/ui/layouts/notebook): A compact version of Docs Layout
- [Spacious Layout](/docs/ui/layouts/spacious): A less compact version of Docs Layout
- [Docs Page](/docs/ui/layouts/page): A page in your documentation
- [Root Provider](/docs/ui/layouts/root-provider): The context provider of Fumadocs UI.

### Configurations [#configurations]

Each layout supports a shared set of options.

It is recommended to store these options into a file, and pass them to the layouts.

```tsx tab="Shared Options" title="lib/layout.shared.tsx"
import type { BaseLayoutProps } from 'fumadocs-ui/layouts/shared';

export function baseOptions(): BaseLayoutProps {
  return {
    nav: {
      title: 'My App',
    },
  };
}
```

```tsx tab="Docs Layout" title="app/docs/layout.tsx"
import { DocsLayout } from 'fumadocs-ui/layouts/docs';
import { baseOptions } from '@/lib/layout.shared';
import { source } from '@/lib/source';
import type { ReactNode } from 'react';

export default function Layout({ children }: { children: ReactNode }) {
  return (
    <DocsLayout
      // [!code highlight]
      {...baseOptions()}
      tree={source.getPageTree()}
    >
      {children}
    </DocsLayout>
  );
}
```

```tsx tab="Home Layout" title="app/(home)/layout.tsx"
import { HomeLayout } from 'fumadocs-ui/layouts/home';
import { baseOptions } from '@/lib/layout.shared';
import type { ReactNode } from 'react';

export default function Layout({ children }: { children: ReactNode }) {
  return (
    <HomeLayout
      // [!code highlight]
      {...baseOptions()}
    >
      {children}
    </HomeLayout>
  );
}
```

See detailed docs for [`links`](/docs/ui/layouts/links) and [`nav`](/docs/ui/layouts/nav) options.

### BaseLayoutProps

| Prop            | Type                                         | Description       |
| --------------- | -------------------------------------------- | ----------------- |
| `githubUrl?`    | `string \| undefined`                        | GitHub url        |
| `links?`        | `LinkItemType[] \| undefined`                |                   |
| `nav?`          | `NavOptions \| undefined`                    | navigation config |
| `slots?`        | `Partial<BaseSlots> \| undefined`            |                   |
| `children?`     | `ReactNode`                                  |                   |
| `themeSwitch?`  | `ThemeSwitchOptions \| undefined`            |                   |
| `searchToggle?` | `SearchToggleOptions \| undefined`           |                   |
| `i18n?`         | `boolean \| I18nConfig<string> \| undefined` | **Deprecated.**   |