Skip to content

Side panel rail

Pro

A 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.

Keyboard

Side panel rail keyboard
KeyAction
TabMoves through the items, then to the toggle.
EnterFollows a link, or presses a button or the toggle.
SpacePresses a button or the toggle.

While hidden, the items are out of the tab order and only the toggle remains.

Screen reader

Role
A navigation region holding links or buttons.
Accessible name
The region from aria-label or aria-labelledby, each item from its text, and the toggle from labels.hide or labels.show.
States announced
The toggle reports aria-expanded. A link with current is aria-current="page"; a button with selected is aria-pressed.

An item’s name shows in a tooltip, which only repeats it, so it isn’t a description.

Focus

  • If the strip hides while focus is on an item, focus moves to the toggle, so it never drops to the page.
  • Keyboard focus shows the ring on the tab and doesn’t widen it.

Touch target

  • Items and the open toggle have 48px targets.
  • The hidden tab is 24px wide for a pointer, which meets WCAG 2.5.8, and 48 by 48 on a touch screen.

Motion

  • The strip, tab and chevron move together on the default spatial spring.
  • Under reduced motion nothing moves; the items’ fade and the colours stay, since a fade isn’t movement.

What you need to do

  • Name the region with aria-label or aria-labelledby, which the types require.
  • Below hideBelow the strip is gone, so offer its destinations somewhere else, such as the app’s drawer.
  • When an item opens a sheet, add aria-expanded and aria-controls if the sheet is the item’s disclosure.