Piplup
@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

  • roles and permissions accept string or number values.
  • Use the loading prop while your identity/ACL data is being fetched.

On this page