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