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...

Stay tuned

Join 1,000+ subscribers and receive monthly tips & updates on new Ariakit content.

No spam. Unsubscribe anytime. Read latest issue