Mentions
Insert people or references into text.
Basic usage
basic.tsx
Different prefixes
basic.tsx
Popup width
The popup matches the field width by default (popupWidth="trigger"). Set popupWidth="auto" to fit the content, which may be narrower than the field, or popupWidth={300} for a fixed 300px width; CSS lengths are also supported. popupMaxWidth is unset by default. The example below fits the content with an explicit maximum width. Viewport edge avoidance still applies.
popup.tsx
MentionOption
Mentions API
Types and interaction
Import the props and data types when creating reusable configuration.
Provide accessible labels for icon-only actions. Interactive controls support keyboard navigation and respect ConfigProvider themes and reduced motion.