Shadow DOM
It's possible to use Lucide icons within a shadow DOM.
Example using createElement function
Using the createElement function to create a single icon and append it to a shadow DOM.
Example using createIcons function
If you want to create multiple icons within a shadow DOM, you can use the createIcons function. With the root option, you can specify the shadow root as the root element where the icons should be rendered.