Role-by-resource access matrix.
| Prop | Type | Default | Description |
|---|---|---|---|
roles | string[] | — | Row headers. |
resources | string[] | — | Column headers. |
permissions | Record<string, Record<string, PermissionLevel>> | — | Levels. |
onChange | (role, resource, level) => void | — | Update handler. |
Copy this complete component into a page file. Edit and run it in the Playground.
Loading editor…