Mentions with badges and colours
[]
Click in the editor, type @ and a letter. Stored as [@Name](mention:kind/id?refs).
createEditor(el, { mentions: { trigger: "@", search: (q, { signal }) => searchPeople(q, signal), // your API groupBy: (p) => p.badge, }, chips: [{ scheme: "mention", kinds: { "team-a": { color: 1, label: "Team A" }, "team-b": { color: 6, label: "Team B" }, } }],});