프로젝트
GitHub에서 보기 Svelecte
mskocik/svelecte
소개
Svelte로 작성된 유연한 자동 완성/선택 컴포넌트
웹 및 앱 개발What you can do
- multiselect with limit of max selected items
- allow simple array or complex objects as items
- custom item renderer (formatter)
- allow creating new items (and possibly edit them)
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalSvelecte 

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.
📃 Features
- searchable
- multiselect with limit of max selected items
- allow simple array or complex objects as items
- custom item renderer (formatter)
- allow creating new items (and possibly edit them)
- remote data fetch
- virtual list support
- i18n and basic ARIA support
- SSR support
- client-validation support (tested with sveltekit-superforms)
- lazy dropdown rendering
- usable as custom element
- customizable styling
- dnd intergration with
svelte-dnd-action
🔧 Installation
npm install svelecte
[!NOTE] For Svelte 4 use version 4. Version 5 is svelte 5 only ⚡
Minimalistic example
<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.
Thanks to
- selectize.js - main inspiration
- sifter - search engine
- svelte-tiny-virtual-list virtual list functionality for v3, v4
- and svelte of course 😊
And if you want to thank me, you can through my sponsor page.
License
관련 프로젝트 살펴보기
불러오는 중…