Skip to content

Using in Svelte? #370

Answered by favna
ysk3a asked this question in Q&A
Discussion options

You must be logged in to vote

It is actually very similar to Vue because Svelte's syntax in general is similar to Vue. Here is a codesandbox that uses Codesandbox' template for Svelte: https://codesandbox.io/s/discord-components-svelte-dw6fhw?file=/App.svelte

Edit: how it works for sveltekit though I don't know because I cannot find any documentation for sveltekit for how to define custom webcomponents. Note that this will therefore not be an issue on this library, but rather one on sveltekit. I'm sure there must be a way to use webcomponents in sveltekit but it's not clearly documented.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by favna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants