Skip to content

Function: Can() ​

ts
function Can(props): Element | null;

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

Renders children if the user has the permission(s) — like spatie's @can / @canany.

Parameters ​

ParameterType
propsCanProps

Returns ​

Element | null

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