Skip to content

Function: Cannot() ​

ts
function Cannot(props): Element | null;

Defined in: packages/react/src/components.tsx:60

Renders children if the user does NOT have the permission(s) — like spatie's @cannot.

Parameters ​

ParameterType
propsCannotProps

Returns ​

Element | null

Released under the MIT License. Inspired by spatie/laravel-permission.