Skip to content

blocks/permission-grid

PermissionState = "allowed" | "denied"

Whether the capability is available in this scope.


PermissionGridRow = Readonly<{ id: string; mark: ReactNode; label: string; group?: string; state: PermissionState; stateLabel: string; scope: string; control?: ReactNode; }>

One capability row.


PermissionGridProps = Readonly<{ caption: ReactNode; summary?: ReactNode; rows: readonly PermissionGridRow[]; headings?: Readonly<{ capability: string; state: string; scope: string; control?: string; }>; className?: string; }>

Props accepted by PermissionGrid.

PermissionGrid(__namedParameters): Element

Product-neutral, dense capability sheet: one row per capability.

PermissionGridProps

Element