Components#
hono-preact ships a set of headless, accessible UI primitives that lean on the
platform: the native <dialog> element and top layer, a battle-tested positioning
library, and a thin ARIA, keyboard, and collection layer on top. The popup
components (Popover, Tooltip, Menu, Select, Combobox) promote their surfaces into
the top layer with the Popover API and require it; Dialog builds on the native
<dialog> element. Positioning is computed in JavaScript, so CSS anchor
positioning is not used.
What's here#
The reference is grouped as the library grows:
- Overlays: Dialog, Popover, Tooltip, Menu, Context Menu, Select, Combobox, Toast.
- Foundations: the shared primitives the components build on: the render-prop and ref helpers (renderElement, mergeRefs), controlled state (useControllableState), and the overlay building blocks for positioning, dismissal, and focus return (usePosition, useDismiss, useFocusReturn).