Popover
A popover that grows out from under its trigger and folds back into it.
npx shadcn add https://kinoui.com/r/popover.jsonCopy install command
Examples
Default
It grows out from under its trigger, as wide as the trigger at first, and folds back into it.
Sides
Pick where it opens with side and align. It still grows from where its trigger is.
Open on hover
With openOnHover, it also opens when the pointer rests on the trigger for 200ms, and what is inside stays usable.
With a form
Focus moves to the first control inside when it opens.
Retention period
Icon trigger
A trigger with only an icon needs an aria-label.
Long content
Content taller than the space left on screen scrolls inside the box.
Width
It is w-72 unless you set a width with className.
Installation
Copy code
npx shadcn@latest add https://kinoui.com/r/popover.json- Files
lib/reduce-motion.tslib/scroll.tslib/popup.tscomponents/kino/popover.tsx- Packages
@base-ui/react- Global CSS
- the feels, the density tokens, the shape tokens and the success and warning colours
New to Kino? Installation covers what your project needs first and the @kino namespace.
API reference
Popover
PopoverTrigger
PopoverContent
Accessibility
- Focus moves to the first control inside when it opens, and back to the trigger when it closes.
- Escape or a press outside closes it.
- With
openOnHover, the keyboard still opens it with Enter or Space, so nothing is reachable by hover alone. - A
PopoverTitlenames the popover for a screen reader. - When the system asks for less motion, the popover only fades.