Tooltip
A short label that grows out of its trigger on hover and focus, and slides between the triggers of a group.
npx shadcn add https://kinoui.com/r/tooltip.jsonCopy install command
Examples
Copy link
Default
It grows out of its trigger after a short wait, and folds back into it.
Bold CtrlBItalic CtrlIUnderline CtrlUCode CtrlE
Group
Tooltips in a TooltipGroup share one label, which slides from trigger to trigger.
Opens on the leftOpens on the topOpens on the bottomOpens on the right
Sides
Pick where it opens with side; it moves when that side has no room.
Only project admins can publishOnly project admins can publish
Disabled
A disabled button takes no pointer events, so a span around it is the trigger, and the button carries the reason for a screen reader.
Installation
Copy code
npx shadcn@latest add https://kinoui.com/r/tooltip.json- Files
lib/reduce-motion.tslib/popup.tslib/glide.tsxlib/refs.tscomponents/kino/tooltip.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
TooltipProvider
Tooltip
TooltipTrigger
TooltipContent
TooltipPopup
Accessibility
- It opens on hover and on keyboard focus, and Escape closes it.
- The label describes its trigger for a screen reader. An icon-only trigger still needs its own
aria-label. - Touch has no hover, so never put anything in a tooltip that people can’t find another way.
- When the system asks for less motion, it only fades.