Returns the toolbar store from the nearest toolbar container.

Code examples

function ToolbarItem() {
const store = useToolbarContext();
if (!store) {
throw new Error("ToolbarItem must be wrapped in ToolbarProvider");
// Use the store...

Follow updates

Join 1,000+ subscribers and receive monthly updates with the latest improvements on API Reference.

Read latest issue

No Spam. Unsubscribe at any time.