Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

svelte create and pass component as html element

$
0
0

I'm using a library which requires me to create an html element and pass that element. Then the library puts the element in the correct place internally.

The problem I'm facing is that the element i create using document.createElement is not styled and adding all the styles using js feels backwards..

Is it somehow possible to have the element i want to create be a svelte component with it's own style? So that it can be passed to the library which requires an html-element?


Viewing all articles
Browse latest Browse all 1541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>