Hover card
A card that previews what a link points to, on hover and focus, and slides between the links of a group.
npx shadcn add https://kinoui.com/r/hover-card.jsonCopy install command
Examples
Assigned to @Maya Chen
Default
It grows out from under its link after a short wait, and folds back into it.
Group
Hover cards in a HoverCardGroup share one card, which slides from link to link.
Installation
Copy code
npx shadcn@latest add https://kinoui.com/r/hover-card.json- Files
lib/reduce-motion.tslib/scroll.tslib/popup.tslib/glide.tsxcomponents/kino/hover-card.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
HoverCard
HoverCardTrigger
HoverCardContent
Accessibility
- It opens on hover and on keyboard focus of the link, and Escape closes it.
- The link still goes where it points; the card only previews it, so put nothing in the card that the page behind the link doesn’t have.
- Content taller than the space left on screen scrolls inside the card.
- When the system asks for less motion, it only fades.