Closed bmbshlly closed 2 years ago
Svelte works with web components out of the box, so there’s no need to wrap them.
I’m going to close this, but if there’s something I’m missing feel free to comment and I’ll reopen as necessary.
It would be helpful to have docs/instructions for adding and using Shoelace correctly in Svelte and SvelteKit apps.
Add a Svelte page in the sidebar:
Add example Vite config in bundling docs: https://shoelace.style/getting-started/installation#bundling
Svelte doesn't like custom inputs:
SOLUTION:
Similiar to Vue solution (https://shoelace.style/frameworks/vue#two-way-binding):
<sl-input
id="email"
label="Email"
value={email}
oninput={event => email = event.target.value}
></sl-input>
Svelte doesn't like custom inputs
I would suggest opening an issue encouraging the Svelte maintainers to add support, as custom element form controls are becoming more and more common.
Can you create a package for svelte, like we have for react using reactify-wc?