@piplup/react-aclComponents
AclProvider
Provide roles and permissions to the ACL context.
Import
import { AclProvider } from "@piplup/react-acl";Usage
<AclProvider loading={false} roles={["admin"]} permissions={["read","write"]}>
<App />
</AclProvider>Props
Prop
Type
Notes
rolesandpermissionsacceptstringornumbervalues.- Use the
loadingprop while your identity/ACL data is being fetched.