Overlays
Popover
A floating panel anchored below a trigger, for short forms, settings and details.
Group: Overlays. Exports: Popover. shadcn/ui equivalent: Popover (partial parity).
Usage
import { Popover } from "./halaska-kit";
Popover props
triggerReactNode: The element that opens it.childrenReactNode: Content.
Accessibility
- Opens when the trigger is clicked, so a Button trigger works with Enter and Space.
- Escape closes it and returns focus to the trigger. An outside click also closes it.
- The panel has the dialog role and is hidden while closed. It has no accessible name.
- Focus is not moved into the panel. aria-expanded is set on the trigger itself.
Known gaps
- Open state is internal. There is no open or onOpenChange prop.
- Placement is fixed: below the trigger, aligned to its left edge.
- No anchor or arrow parts.
Halaska UI · Components · Patterns · Screens · Install