Skip to content

Variable: HasRole ​

ts
const HasRole: Component<HasRoleProps> = HasRoleComponent;

Defined in: packages/sveltekit/src/index.ts:28

Renders children when the user has the role(s), otherwise the fallback snippet. See HasRoleProps.

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