Users · Components
InviteUserModal
Modal for inviting new usersPublic export
typescript
import { InviteUserModal } from '@happyvertical/smrt-users/svelte';- Import path
@happyvertical/smrt-users/svelte- Props
- 6
- Props described
- 6 of 6
- Bindable state
- 0
- Callback events
- 2
- Verified release
- 0.44.0
Props
NameTypeRequiredDescription
openbooleanYesControls whether the invitation modal is visible.tenantTenantYesTenant context for the invitation.rolesRole[]YesAvailable roles that can be assigned to the invited user.onsubmit(data: { email: string; roleId: string; sendEmail: boolean; }) => voidYesCallback invoked with email, role, and send preference when form is submitted.onclose() => voidYesCallback invoked to close the invitation modal.loadingbooleanNoBlocks form submission while invitation is being processed.Bindable state
This component has no bindable public state.
Callback events
onsubmit(data: { email: string; roleId: string; sendEmail: boolean; }) => voidonclose() => void