prefix is the character that opens the list, "@" by default. On Input the same name means a node shown before the text, so the two are easy to mix up.
- split (a space by default) ends a mention, and is inserted after each one you pick. With "" the next word runs into the mention.
- validateSearch decides whether the text after the trigger is still a search. The default stops at split, so the list closes on a space. Replace it when names contain spaces, and keep it fast: it runs on every keystroke.
- Pass an array to prefix for several triggers, and use onSearch: its second argument is the prefix that was typed, so you can swap options for each one.
Keep to the conventional characters. Readers expect people after @ and topics after #.