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