SidebarRail in a desktop app
The same sidebar inside an Electron window with a hidden title bar: desktop="mac" leaves a 52 px draggable strip over the rail and the panel, where the traffic lights sit (the grey dots here); "windows" and "linux" leave 32 px under the title bar overlay. titleBarHeight sets another height.
- SidebarRail
PreviewLink to the section Preview
Live in all three themes. Everything here is interactive.
Light theme, SidebarRail in a desktop app
Dark theme, SidebarRail in a desktop app
High contrast theme, SidebarRail in a desktop app
UsageLink to the section Usage
import { SidebarRail } from '@skribly/ui/shell'<SidebarRail desktop="mac" sections={sections} current={pathname} labels={labels} />
// main process: new BrowserWindow({ titleBarStyle: 'hiddenInset' })Every label is a prop, so the app passes its own words in its own language. See no built-in text.
AccessibilityLink to the section Accessibility
- The strip is aria-hidden and holds no control, so nothing is lost to the drag region; the keys, names and targets are those of the web rail.
This demo runs through axe in all three themes on every test run. See what the tests check.