pub fn DocsLayout(_: DocsLayoutProps) -> ElementExpand 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 consumerDocsContext— 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 totrue. Set tofalsewhen the consumer provides their own header and tab bar outside ofDocsLayout.children: The routed page content (fromOutletor explicit child).
§Props
For details, see the props struct definition.
header:Option<Element>show_header:boolchildren:Element