hn.today

Show HN: Sliding-panes React UI library (inspired by WebOS Enyo)

vcarl.com37 points8 comments
Screenshot of Show HN: Sliding-panes React UI library (inspired by WebOS Enyo)

Sashay is an MIT-licensed UI library for building interfaces from resizable panes, drawing inspiration from WebOS Enyo. Each pane remains an ordinary view; users arrange the workspace by dragging the divider between panes. Dividers settle on simple width fractions, with finer choices on wider screens, so layouts remain usable across different display sizes. A pane squeezed out of space slips beneath its neighbor, while mobile layouts turn dividers into tabs. A quick flick can carry a divider one or two positions beyond the release point, and each pane can include a bottom bar for controls such as filters or settings.

For deeper navigation, panes fold into a narrow spine with a tab for each hidden level, allowing stacks to grow without increasing the effort needed to drag through them. The open panes, their widths, and open bars can be encoded in a short URL value, so a workspace can be saved or shared. The library also supports keyboard control on every divider and exposes its value for assistive technology. Sashay is ESM-only, works with React 19 or through its vanilla core, and has no runtime dependencies. Interactive examples demonstrate a three-pane plant picker and a nested house-navigation interface.

Read on vcarl.com8 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.