s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Membership and permissions

PermissionCheck

No summary has been written for PermissionCheck. Everything below is generated from the declaration shipped in 0.44.0 and describes the real contract.

Public export

typescript
import { PermissionCheck } from '@happyvertical/smrt-ui';
Import path
@happyvertical/smrt-ui
Props
6
Props described
6 of 6
Bindable state
0
Callback events
0
Verified release
0.44.0

Props

NameTypeRequiredDescription
permissionstringNoSingle permission to check
permissionsstring[]NoMultiple permissions to check
userPermissionsstring[]YesUser's current permissions
mode'all' | 'any'No'all' requires all permissions, 'any' requires at least one
childrenSnippetYesContent to show when permission check passes
fallbackSnippetNoOptional fallback content when check fails

Bindable state

This component has no bindable public state.

Callback events

This component declares no callback event props.

Examples and explanation