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