OptionalcolorsPartial color overrides merged with built-in defaults. See JoinTokenColors.
OptionalisWhen true, shows a loading indicator on action buttons.
OptionallabelsPartial label overrides merged with built-in defaults. See JoinTokenLabels.
Determines which view is rendered.
'display' -- Token display with copy/share actions.'input' -- Token entry form with lookup and join actions.OptionalonCalled when the user copies the token. Used in 'display' mode.
OptionalonCalled when the user presses the join button. Receives the entered token and optional password. Used in 'input' mode.
OptionalonCalled when the user presses the lookup/preview button. Receives the entered token. Used in 'input' mode.
OptionalonCalled when the user shares the token via the system share sheet. Used in 'display' mode.
OptionalrequireWhether to show the password input field.
OptionalroomRoom information returned from a lookup, displayed as a preview.
OptionalroomRoom name shown as context in display mode.
OptionaltokenThe token string to display. Used in 'display' mode.
Props for the JoinToken component.
The component operates in two modes controlled by the
modeprop:'display'-- Shows a token in a monospace box with copy and share buttons.'input'-- Provides a form to enter a token, optionally look up room info, enter a password, and join.