Localpane UI: Accessible Web Components that follow the WAI-ARIA patterns
Accessible components are easy to get almost right: a dialog that forgets to return focus, tabs without arrow keys, a tooltip that vanishes when you move onto it, a toast nobody hears. Each one fails real users and many fail WCAG.
Localpane UI is a set of seven custom elements that implement the WAI-ARIA Authoring Practices patterns properly: <df-dialog>, <df-tabs>, <df-accordion>, <df-toast>, <df-tooltip>, <df-menu> and <df-copy-button>. Keyboard interaction, focus management, ARIA wiring and live-region announcements are built in and covered by more than 100 Playwright browser tests.
They use the light DOM and enhance markup you write, so they work in plain HTML, React, Vue, Svelte and Angular, render on the server, and degrade gracefully without JavaScript. Style them with CSS custom properties; the light and dark design tokens are contrast-checked against WCAG AA by the test suite.
For front-end developers and design-system teams who want accessible building blocks without adopting a framework-specific component library.
Features:
- Modal dialog on native <dialog>: initial focus, focus return, cancellable Escape and backdrop, scroll lock
- Tabs with roving tabindex, orientation-aware arrow keys (RTL too), Home/End and manual activation
- Accordion with real headings and buttons, single or multiple mode, readable without JavaScript
- toast() with polite/assertive live regions, pause on hover and focus, stack limit and a hot key
- Tooltips that meet WCAG 1.4.13: dismissible, hoverable, persistent, and flipped to stay on screen
- Menu button with typeahead, disabled and checkable items, Escape and click-outside handling
- Copy button with live-region feedback and a fallback when the Clipboard API is unavailable
- Light and dark design tokens, contrast-tested against WCAG AA in every theme
- Light DOM progressive enhancement: works in plain HTML, React, Vue, Svelte and SSR
- Zero runtime dependencies, tree-shakeable per-component entry points, TypeScript declarations
What's included:
- Complete source code
- TypeScript declarations
- 310 automated tests (195 Node unit tests, 115 Playwright browser tests)
- Examples: demo page, React and Vue guides
- Free 1.x updates
Requirements:
- Evergreen browsers (last 2 versions of Chrome, Edge, Firefox, Safari)
- No runtime dependencies
- Node.js 18+ only to run the tests
Licence
Commercial licence, single developer: one licence covers one individual developer, and you can use it in unlimited projects you build for yourself or clients. Don't redistribute the source. Team or company licences: contact the seller for a quote (the support email is in LICENSE.md and on the purchase receipt). Full text is in LICENSE.md inside the download. Summary: https://localpane.atrosen1.workers.dev/license/
Updates and refunds
Free updates for all 1.x releases through your purchase link. If the package doesn't work as documented and we can't fix it, you get a full refund within 30 days.
This product's licence terms (in the download and summarised on our site) supplement Payhip's standard terms of use.