Flexible autocomplete/select component written in Svelte. Initially inspired by Selectize.js. Also usable as custom element. Usable in forms, behaves very similar to standard <select>
element.
See the latest changes on the Releases page.
svelte-dnd-action
npm install svelecte
[!NOTE] For Svelte 4 use version 4. Version 5 is svelte 5 only âš¡
<script>
import Svelecte from 'svelecte';
const list = [{ id: 1, name: 'Item 1' }, { id: 2, name: 'Item 2'}, ...];
let myValue = null;
</script>
<Svelecte options={list} bind:value={myValue}></Svelecte>
Visit documentation for more details.
And if you want to thank me, you can through my sponsor page.