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