Skip to content

Function: Cannot() ​

ts
function Cannot(props): Element;

Defined in: packages/solid/src/components.ts:79

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

Parameters ​

ParameterType
propsCannotProps

Returns ​

Element

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