Prism UI Components

A showcase of five accessible interface components built with vanilla JavaScript. Tab through the page, or use the sidebar to jump to a component. Every widget's keyboard contract is documented beneath its live demo.

Tabs

Automatic-activation tabs: arrow keys both move focus and switch panels. Only the active tab is in the tab order.

What is Prism UI?

Prism UI is a set of dependency-free interface primitives. Each component ships with its interaction semantics baked in — focus management, ARIA state, and keyboard handling are part of the component, not an afterthought.

← → switch tabs · Tab moves into panel content

Combobox (autocomplete)

A filtering autocomplete using the aria-activedescendant pattern — the listbox itself is never focusable.

Type to filter · ↑↓ highlight · Enter select · Esc close & revert

Accordion

Independent disclosure regions — any number may be open at once. Height animates; hidden toggles only after the close animation completes.

Enter/Space toggle · multiple panels may be open · Tab between triggers