Triggers
One SuggestMenu (root) per trigger character. Only one session is active at a time across all triggers — mutual exclusion is built in.
Trigger configuration
allowSpaces— whether the query can contain spacesstartOfLine— trigger only at the beginning of a lineallowedPrefixes— defaults to[' ']so the trigger only fires after whitespace; override for other prefixesrequireQuery— popup hidden until the user types at least one character
Mutual exclusion
When one trigger opens a session, any other trigger’s session is closed. Typing @ then / closes the @ menu and opens the / menu. This is handled by the extension so you don’t need to coordinate multiple roots yourself.
Demos
Multiple triggers in one editor (@, /, #) — only one active at a time. startOfLine: true. requireQuery: true. See Storybook for interactive examples.