Skip to main content

DocsLayout

Function DocsLayout 

Source
pub fn DocsLayout(_: DocsLayoutProps) -> Element
Expand description

Documentation layout shell.

Renders the tab bar, sidebar, content area, search modal, and mobile drawer. The consumer wraps this in their own navbar via Dioxus route layouts.

§Context requirements

  • &'static DocsRegistry — provided by consumer
  • DocsContext — provided by consumer

§Props

  • header: Optional element to render inside the docs area header (e.g. branding + search button). If not provided, a default header with search button and hamburger is rendered.
  • show_header: Whether to render the internal header area (default header/custom header and tab bar). Defaults to true. Set to false when the consumer provides their own header and tab bar outside of DocsLayout.
  • children: The routed page content (from Outlet or explicit child).

§Props

For details, see the props struct definition.