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.
Keyboard
| Key | Action |
|---|---|
| Tab | Moves through the items, then to the toggle. |
| Enter | Follows a link, or presses a button or the toggle. |
| Space | Presses a button or the toggle. |
While hidden, the items are out of the tab order and only the toggle remains.
Screen reader
- Role
- A
navigationregion holding links or buttons. - Accessible name
- The region from
aria-labeloraria-labelledby, each item from its text, and the toggle fromlabels.hideorlabels.show. - States announced
- The toggle reports
aria-expanded. A link withcurrentisaria-current="page"; a button withselectedisaria-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-labeloraria-labelledby, which the types require. - Below
hideBelowthe strip is gone, so offer its destinations somewhere else, such as the app’s drawer. - When an item opens a sheet, add
aria-expandedandaria-controlsif the sheet is the item’s disclosure.