Function: HasRole()
ts
function HasRole(props): Element;Defined in: packages/solid/src/components.ts:84
Renders children if the user has the role(s), like spatie's @role / @hasanyrole / @hasallroles.
Parameters
| Parameter | Type |
|---|---|
props | HasRoleProps |
Returns
Element
