PermissionMatrix.
Manage role-permission grants in a compact accessible grid.
The preview uses the actual shared component, including your current theme, rounding, border and motion preferences.
Props & API reference
Parameters available in the shared component, including value types, requirements and accepted options.
| Parameter | Type | Required | Default | Possible values | Description |
|---|---|---|---|---|---|
roles | Role[] | Yes | — | — | Role identifiers and names. |
permissions | Permission[] | Yes | — | — | Permissions and descriptions. |
value | Record<string,string[]> | Yes | — | — | Granted permission keys per role. |
onChange | (value: Record<string,string[]>) => void | No | — | — | Receives changed grants. |
readOnly | boolean | No | false | true · false | Disable permission changes. |
className | string | No | — | — | Additional CSS class on the outer component element. |