Components•Tooltip
Components•Tooltip
Tooltip
A hover and focus hint for icon-only controls or compact labels.
Dependencies
Copy below cli
npx shadcn add @bjork-ui/primitive-tooltipHow to use
import { BjorkTooltip, BjorkTooltipTrigger, BjorkTooltipContent } from "@/components/isaiahbjork/primitives";Props
classNamestringPass through styling hooks for the Tooltip primitive without replacing the base Bjork surface.
childrenReactNodeComposable content, labels, icons, and nested content where the primitive supports them.
contentReactNodeProvide the short helper text or custom content shown from hover and keyboard focus.
Icon hint
Use for controls where the icon is clear but still needs an accessible label.
<BjorkTooltip> <BjorkTooltipTrigger asChild><BjorkButton>...</BjorkButton></BjorkTooltipTrigger> <BjorkTooltipContent>Component settings</BjorkTooltipContent></BjorkTooltip>