hl-elements
v0.0.1
Published
Headless UI primitives
Readme
hl-elements
Accessible, headless custom elements for the modern web. Unstyled wrappers around native browser APIs — Popover, Dialog, and more — with full keyboard navigation, ARIA management, and CSS transitions built in.
(Note: This package is currently under development for the upcoming 1.0 release)
Overview
- Zero styling — bring your own CSS, works with Tailwind, vanilla CSS, or any framework
- Native-first — built on the Popover API,
<dialog>, and Command Events - Accessible by default — ARIA attributes, focus management, and keyboard navigation are handled automatically
- Framework-agnostic — plain Custom Elements
Installation
npm install hl-elementsUpcoming Elements
The full release will include:
<hl-dialog><hl-popover><hl-dropdown><hl-select><hl-autocomplete><hl-tab-group>
Stay tuned!
