UI Kit
Behavior primitives
These exports are not visible components, but they are public because consumers often need the same placement, dismissal, and keyboard behavior for custom surfaces.
Exports
| Export | Purpose |
|---|---|
| anchorToRect | Fixed-position placement helper for popovers anchored to a DOMRect. |
| flipAbovePlacement | Caret menu placement with flip-above behavior and dynamic max-height. |
| DismissibleOverlay | Pointer-outside plus Escape dismissal for floating menus. |
| KeyboardNavigableList | Signal-based ArrowUp/ArrowDown/Enter list navigation primitive. |
Guidance
Prefer the ready-made kit components when their UI fits. Reach for primitives when your product owns the visual shell but still needs reliable caret placement, outside dismissal, or list navigation.