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