Tooltip

Tooltips provide helpful context for interactive elements, appearing when users hover or focus on them.

@radix-ui/react-tooltip

Installation


1

Install the following dependencies:

npx shadcn@latest add https://sbthemes-storev2.vercel.app/r/tooltip.json

Examples


Position

Custom Delay


API Reference

This component is based on the <button> element and supports all of its props and adds:

Provider

Contains all the parts of a tooltip.

PropTypeDefault
delayDurationnumber0
openbooleanfalse

Trigger

PropTypeDefault
asChildbooleanfalse

Content

PropTypeDefault
sidetop, right, bottom, lefttop
alignstart, center, endcenter
sideOffsetnumber0