Returns the tooltip store from the nearest tooltip container.

Code examples

function Tooltip() {
const store = useTooltipContext();
if (!store) {
throw new Error("Tooltip must be wrapped in TooltipProvider");
// Use the store...

Follow updates

Join 1,000+ subscribers and receive monthly updates with the latest improvements on API Reference.

Read latest issue

No Spam. Unsubscribe at any time.