useTooltipContext
Returns the tooltip store from the nearest tooltip container.
Code examples
function Tooltip() {
if (!store) {
throw new Error("Tooltip must be wrapped in TooltipProvider");
}
// Use the store...
}
Returns the tooltip store from the nearest tooltip container.
function Tooltip() {
if (!store) {
throw new Error("Tooltip must be wrapped in TooltipProvider");
}
// Use the store...
}
Join 1,000+ subscribers and receive monthly tips & updates on new Ariakit content.
No spam. Unsubscribe anytime. Read latest issue