So, You Want to Build an @mention Autocomplete Feature?
Twitter, Slack, Notion, Google Docs, and Asana have popularized the “@mention” pattern. You can mention another person, a channel, a file, or some other queryable object using triggers, such as the @ or # characters. This opens a panel with suggestions, letting you complete your message with the right reference.