URL Menu Layout

A URL-driven menu layout that syncs active section with query parameters

Preview

Installation

Usage

API Reference

UrlMenuLayout

PropTypeDefaultDescription
paramstring"section"URL query parameter name to sync with
defaultValuestring""Default section ID when no URL param is set
childrenReact.ReactNode-MenuContent, MenuPage, and MenuFooter elements
menuHeaderReact.ReactNode-Optional header above the menu (from MenuLayout)
menuFooterReact.ReactNode-Optional footer below the menu (from MenuLayout)

MenuContent

Renders section content inside a ScrollPage with automatic scroll handling.

PropTypeDefaultDescription
idstring-Unique section identifier (synced with URL param)
labelstring-Label displayed in the menu sidebar
iconReact.ElementType-Optional icon component displayed before the label
childrenReact.ReactNode-Section content

MenuPage

Like MenuContent but renders children directly without ScrollPage wrapping, for custom page layouts.

PropTypeDefaultDescription
idstring-Unique section identifier
labelstring-Label displayed in the menu sidebar
iconReact.ElementType-Optional icon component
childrenReact.ReactNode-Section content (rendered without scroll wrapper)

MenuFooter

Renders footer content for a specific section (matched by ID).

PropTypeDefaultDescription
idstring-Section ID this footer belongs to
childrenReact.ReactNode-Footer content