crisward / svelte-tag

MIT License
52 stars 8 forks source link

THANKS!! and it works without referencing stylesheets #10

Closed chmich closed 2 years ago

chmich commented 2 years ago

Thanks a lot, chrisward, for creating that!

I used it without referencing a stylesheets

import component from "svelte-tag"

import App from "../components/auto-select.svelte";
new component({component:App, tagname:"svelte-auto-select"})

and its applying all global styles and handling props giving to the CE.

crisward commented 2 years ago

If you don't have shadow:true set, any global css will be visible inside the component. The href attribute is only really needed if you want to inject css into the shadow dom.

Hope that make sense.

chmich commented 2 years ago

Thank you for clearify, crisward! For me its perfect like it is. BR, Christian

crisward commented 2 years ago

No problem.