TidalUI

Team invitations preview

Invite teammates and review consumer-owned invitation states with explicit resend and revoke requests.

pro · Blocks · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/team-invitations

Import components/ui/tidal.css, components/ui/team-invitations.css. Wrap installed components in tidal-scope.

Preview

Team invitations component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/team-invitations.css";
import{TidalTeamInvitations}from"./components/ui/team-invitations";
export default(p:Parameters<typeof TidalTeamInvitations>[0])=><div className="tidal-scope"><TidalTeamInvitations {...p}/></div>;

API and props

TidalTeamInvitations.emailValue (required)
string

Required email value value accepted by this exported component.

TidalTeamInvitations.invitations (required)
ReadonlyArray<TidalInvitationRecord>

Required invitations value accepted by this exported component.

TidalTeamInvitations.onEmailChange (required)
(value: string, event: ChangeEvent<HTMLInputElement>) => void

Callback invoked when the email change interaction is proposed.

TidalTeamInvitations.onRoleChange (required)
(value: string, event: ChangeEvent<HTMLSelectElement>) => void

Callback invoked when the role change interaction is proposed.

TidalTeamInvitations.roles (required)
ReadonlyArray<TidalInvitationRole>

Required roles value accepted by this exported component.

TidalTeamInvitations.roleValue (required)
string

Required role value value accepted by this exported component.

TidalTeamInvitations.title (required)
ReactNode

Required title value accepted by this exported component.

TidalTeamInvitations.confirmation
ReactNode

Optional confirmation value accepted by this exported component.

TidalTeamInvitations.description
ReactNode

Optional description value accepted by this exported component.

TidalTeamInvitations.emailError
ReactNode

Optional email error value accepted by this exported component.

TidalTeamInvitations.emailInputProps
InvitationEmailProps | undefined

Optional email input props value accepted by this exported component.

TidalTeamInvitations.emailInputRef
Ref<HTMLInputElement> | undefined

Optional email input ref value accepted by this exported component.

TidalTeamInvitations.emailName
string | undefined

Optional email name value accepted by this exported component.

TidalTeamInvitations.emptyContent
ReactNode

Optional empty content value accepted by this exported component.

TidalTeamInvitations.error
ReactNode

Optional error value accepted by this exported component.

TidalTeamInvitations.formProps
InvitationFormProps | undefined

Optional form props value accepted by this exported component.

TidalTeamInvitations.formRef
Ref<HTMLFormElement> | undefined

Optional form ref value accepted by this exported component.

TidalTeamInvitations.headingLevel
"h2" | "h3" | "h4" | "h5" | undefined

Optional heading level value accepted by this exported component.

TidalTeamInvitations.inviting
boolean | undefined

Optional inviting value accepted by this exported component.

TidalTeamInvitations.labels
Partial<{ form: string; email: string; emailDescription: string; role: string; roleDescription: string; submit: string; submitting: string; list: string; pending: string; accepted: string; expired: string; revoked: string; sentAt: string; resend: string; revoke: string; loading: string; empty: string; invalid: string; }> | undefined

Optional labels value accepted by this exported component.

TidalTeamInvitations.loading
boolean | undefined

Optional loading value accepted by this exported component.

TidalTeamInvitations.loadingContent
ReactNode

Optional loading content value accepted by this exported component.

TidalTeamInvitations.onInviteRequest
((email: string, role: string, event: FormEvent<HTMLFormElement>) => void) | undefined

Callback invoked when the invite request interaction is proposed.

TidalTeamInvitations.onResendRequest
((invitation: TidalInvitationRecord, event: React.MouseEvent<HTMLButtonElement>) => void) | undefined

Callback invoked when the resend request interaction is proposed.

TidalTeamInvitations.onRevokeRequest
((invitation: TidalInvitationRecord, event: React.MouseEvent<HTMLButtonElement>) => void) | undefined

Callback invoked when the revoke request interaction is proposed.

TidalTeamInvitations.pendingInvitationId
string | undefined

Optional pending invitation id value accepted by this exported component.

TidalTeamInvitations.roleError
ReactNode

Optional role error value accepted by this exported component.

TidalTeamInvitations.roleName
string | undefined

Optional role name value accepted by this exported component.

TidalTeamInvitations.roleSelectProps
InvitationRoleProps | undefined

Optional role select props value accepted by this exported component.

TidalTeamInvitations.roleSelectRef
Ref<HTMLSelectElement> | undefined

Optional role select ref value accepted by this exported component.

TidalTeamInvitations.submitButtonProps
InvitationSubmitButtonProps | undefined

Optional submit button props value accepted by this exported component.

TidalTeamInvitations.submitButtonRef
Ref<HTMLButtonElement> | undefined

Optional submit button ref value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas