zurb / tribute

ES6 Native @mentions
https://zurb.github.io/tribute/example/
MIT License
2.03k stars 304 forks source link

Option to use DOM elements instead of HTML strings as templates #885

Open gyenabubakar opened 1 year ago

gyenabubakar commented 1 year ago

It would be nice to have the option to pass an HTML element to the template properties (like menuItemTemplate) instead of passing an HTML.

This would be nice for situations in which we have an already implemented UI component (in Svelte, Vue, or React) for the menu.

If this was possible, we wouldn't need to use noMatchTemplate for fallback as the UI component would handle that.

I'm new to this library so if this is already possible, kindly let me know. :)