Skip to main content

Mention

Form Controls
Stable

@mention rich text input built on TipTap. Supports fuzzy-filtered suggestions and a template syntax option.

Quick Import
import { Mention } from "@cohere-ai/waypoint-ui/mention";

Live Preview

Loading Mention...

Props

NameTypeDefaultDescription
valuestring-Controlled content value
onValueChangefunction-Callback with { message, mentions }
suggestionsMentionOption[][]Available mention options
mentionsMentionOption[][]Pre-populated mentions
placeholderstring-Placeholder text
disabledboolean-Disables the editor
template'@' | '{{}}''@'Trigger character style
withTriggerbooleanfalseShows a toolbar trigger row
noResultsMessagestring'No results found'Empty results message

Examples

User Mention Input

Text input with @mention support

1
import { Mention, createSuggestion } from '@cohere-ai/waypoint-ui/mention';
2
 
3
<Mention
4
placeholder="Type @ to mention..."
5
suggestions={users}
6
onValueChange={({ message, mentions }) => console.log(message, mentions)}
7
/>

Found an Issue?

If you've encountered a bug or have feedback about the Mention component, please report it to our team. Your feedback helps us improve Waypoint.

Available for all users • Issue will be created in Linear

Was this page helpful?

Your feedback helps us improve our documentation.

Need Help?

Check out the Whitelabeling Playground to explore customization options or visit the Developer Guide for integration help.