Mention input preview
Write native textarea content and insert people or records from supplied suggestions.
pro · Forms · composite
When to use
- Use it when a page needs write native textarea content and insert people or records from supplied suggestions.
- Choose it when the host application can supply the required state and keep business logic outside the presentation component.
Alternatives
- Choose form-field instead when a labeled email field with validation and help text is the actual interface need, rather than mention input.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/mention-inputImport components/ui/tidal.css, components/ui/mention-input.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/mention-input.css";
import{TidalMentionInput}from"./components/ui/mention-input";
export default()=><div className="tidal-scope"><TidalMentionInput label={"Demo"} onValueChange={() => {}} suggestions={[{id:"example",label:"Demo",value:"value"}]} value={"value"}/></div>;API and props
TidalMentionInput.label (required)ReactNodeRequired label value accepted by this exported component.
TidalMentionInput.onValueChange (required)(value: string) => voidCallback invoked when the value change interaction is proposed.
TidalMentionInput.suggestions (required)ReadonlyArray<TidalMentionSuggestion>Required suggestions value accepted by this exported component.
TidalMentionInput.value (required)stringRequired value value accepted by this exported component.
TidalMentionInput.aria-disabledBooleanish | undefinedAccessible disabled supplied by the consumer.
TidalMentionInput.aria-invalidboolean | "true" | "false" | "grammar" | "spelling" | undefinedAccessible invalid supplied by the consumer.
TidalMentionInput.descriptionReactNodeOptional description value accepted by this exported component.
TidalMentionInput.disabledboolean | undefinedOptional disabled value accepted by this exported component.
TidalMentionInput.emptyMessageReactNodeOptional empty message value accepted by this exported component.
TidalMentionInput.errorReactNodeOptional error value accepted by this exported component.
TidalMentionInput.maxSuggestionsnumber | undefinedOptional max suggestions value accepted by this exported component.
TidalMentionInput.onChangeChangeEventHandler<HTMLTextAreaElement, HTMLTextAreaElement> | undefinedCallback invoked when the change interaction is proposed.
TidalMentionInput.onMentionSelect((suggestion: TidalMentionSuggestion, nextValue: string) => void) | undefinedCallback invoked when the mention select interaction is proposed.
TidalMentionInput.readOnlyboolean | undefinedOptional read only value accepted by this exported component.
TidalMentionInput.rootClassNamestring | undefinedOptional root class name value accepted by this exported component.
TidalMentionInput.suggestionsLabelstring | undefinedOptional suggestions label value accepted by this exported component.
TidalMentionInput.triggerstring | undefinedOptional trigger value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- Keep field state, validation results, submission, and persistence in the host form workflow.