ui-headless-runtime
v1.0.0
Published
Framework-agnostic accessible headless UI controllers for TypeScript applications.
Maintainers
Readme
UI Headless Runtime
Framework-agnostic, accessible TypeScript controllers for Dialog, Popover, Menu, Dropdown Menu, Context Menu, Tooltip, Accordion, Tabs, Disclosure, Toast, Command Palette, Listbox, Combobox, Tree View, Navigation Menu, and Collapsible.
npm install ui-headless-runtimeimport { createDialog } from 'ui-headless-runtime';
const dialog = createDialog();
const unsubscribe = dialog.subscribe((snapshot) => {
console.log(snapshot.open);
});
dialog.open();
unsubscribe();
dialog.destroy();The package includes no CSS and has zero runtime dependencies. See the
User Guide for controller
lifecycle, DOM binding, cleanup, SSR, framework integration, and accessibility responsibilities.
Consumers upgrading from 0.1.x should review the
1.0 migration guide.
