Skip to content

Function: Can() ​

ts
function Can(props): Element;

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

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

Parameters ​

ParameterType
propsCanProps

Returns ​

Element

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