Simulates prefers-reduced-motion for the demo. Off follows your system setting.
Steps focus through the demo with ] and [. Tab, arrows, and Escape stay native so the component behaves as shipped.
1
A small label that grows out of an element on hover or focus.
npx shadcn@latest add ikislay/pixel-ui/tooltipimport { Tooltip } from "@/components/ui/tooltip"export function Demo() {return (<Tooltip content="Copy link"><button type="button">Share</button></Tooltip>)}
1// Loading…
Options you can pass to customize this component.
content*ReactNodeWhat the label says.
children*ReactElementOne focusable element. It gets the hover and focus handlers and aria-describedby.
sidetopbottomleftrightWhere the label sits. It does not flip at the screen edge.
delaynumberMilliseconds of hover before it shows.
onFeedback(event: "open" | "close") => voidCalled at each semantic moment, for wiring sound or haptics.
classNamestringMerged onto the label.