Side panel rail
ProA strip of icon links or buttons at the end edge of the window that hides to a small tab. Not an M3 component (@windmorph/react-pro).
import { SidePanelRail, SidePanelRailItem } from '@windmorph/react-pro';Part of Windmorph Pro, paid components on the free core, not on sale yet. See the Pro guide for what it includes and to register interest.
Purpose
A narrow strip of icon links or buttons at the end edge of the window, for secondary destinations and tools that aren't the app's main navigation. For primary destinations, use a NavigationRail.
Behaviour
- An item with
hrefis a link; withonPressit's a button, which can open a standard SideSheet. - Hidden, the strip closes to a 16px gutter and the page gets the room back. The toggle becomes a tab on the window's edge, wider under a pointer and 48px on a touch screen.
- It stores nothing. To remember the state, control
open, and pass a saved value from the server asdefaultOpento avoid a flash on first paint. - Below
hideBelow(mediumby default) the strip isn't shown, so put those destinations in the app's drawer. currentmarks a link to the page that is showing (aria-current="page");selectedmarks a button whose sheet is open (aria-pressed).
Beside a side sheet
Place a variant="standard" SideSheet between the page and the strip. With detached it's a rounded card, and classNames.frame removes its margin on the strip's side.
When not to use
For an app’s primary destinations, use a NavigationRail.
See also
- Sheets: Bottom and side sheets for supplementary content, modal or standing in the layout.
- Navigation rail: Top-level destinations along the start edge, collapsed or expanded, in medium windows.
- Navigation rail group: A rail destination that opens a secondary column of links on hover or focus, and folds as an accordion in an expanded rail. Not an M3 component (@windmorph/react-pro).