Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
useCreateElement: (type, props, children) => {
warning(
!props["aria-label"] &&
!props["aria-labelledby"] &&
props.role !== "menubar",
"[reakit/Menu]",
"You should provide either `aria-label` or `aria-labelledby` props.",
"See https://reakit.io/docs/menu"
);
return useCreateElement(type, props, children);
}
});
useCreateElement: (type, props, children) => {
warning(
!props["aria-label"] && !props["aria-labelledby"],
"[reakit/TabList]",
"You should provide either `aria-label` or `aria-labelledby` props.",
"See https://reakit.io/docs/tab"
);
return useCreateElement(type, props, children);
}
});
useCreateElement: (type, props, children) => {
warning(
!props["aria-label"] && !props["aria-labelledby"],
"[reakit/RadioGroup]",
"You should provide either `aria-label` or `aria-labelledby` props.",
"See https://reakit.io/docs/radio"
);
return useCreateElement(type, props, children);
}
});
useCreateElement: (type, props, children) => {
warning(
!props["aria-label"] && !props["aria-labelledby"],
"[reakit/Popover]",
"You should provide either `aria-label` or `aria-labelledby` props.",
"See https://reakit.io/docs/popover"
);
return useCreateElement(type, props, children);
}
});
useCreateElement: (type, props, children) => {
warning(
!props["aria-label"] && !props["aria-labelledby"],
"[reakit/Menu]",
"You should provide either `aria-label` or `aria-labelledby` props.",
"See https://reakit.io/docs/menu"
);
return useCreateElement(type, props, children);
}
});
useCreateElement: (type, props, children) => {
warning(
!props["aria-label"] && !props["aria-labelledby"],
"[reakit/Toolbar]",
"You should provide either `aria-label` or `aria-labelledby` props.",
"See https://reakit.io/docs/toolbar"
);
return useCreateElement(type, props, children);
}
});
useCreateElement: (type, props, children) => {
warning(
!props["aria-label"] && !props["aria-labelledby"],
"[reakit/Dialog]",
"You should provide either `aria-label` or `aria-labelledby` props.",
"See https://reakit.io/docs/dialog"
);
return useCreateElement(type, props, children);
}
});