Svelecte screenshot

Svelecte

Author Avatar Theme by Mskocik
Updated: 4 Apr 2025
524 Stars

Flexible autocomplete/select component written in Svelte,

Categories

Overview:

Svelecte is a flexible autocomplete/select component written in Svelte. It is inspired by Selectize.js and can be used as a custom element. It is designed to be used in forms and behaves similarly to the standard <select> element. It has a range of features including searchable functionality, multi-select with a limit, support for both simple arrays and complex objects as items, custom item rendering, ability to create new items, remote data fetching, virtual list support, internationalization support, server-side rendering support, lazy dropdown rendering, custom styling, reordable multi-selection, and compatibility with svelte-use-form.

Features:

  • Searchable functionality
  • Multi-select with a limit on the maximum selected items
  • Ability to use simple arrays or complex objects as items
  • Custom item renderer (formatter)
  • Ability to create new items and edit them
  • Remote data fetching
  • Virtual list support
  • Internationalization support
  • Server-side rendering support
  • Lazy dropdown rendering
  • Usable as a custom element
  • Styling options
  • Reordable multi-selection with the addition of svelte-dnd-action
  • Compatibility with svelte-use-form

Installation:

To install Svelecte, follow these steps:

  1. Install the package using npm:
npm install svelecte
  1. Import Svelecte component in your project:
import Svelecte from "svelecte";
  1. Use the Svelecte component in your Svelte template:
<Svelecte />

Summary:

Svelecte is a powerful autocomplete/select component for Svelte that offers a wide range of features and customization options. It can be easily installed and used in your Svelte projects. Whether you need a simple select dropdown or a complex multi-select with advanced features, Svelecte has got you covered. With its flexible design and compatibility with other Svelte libraries, Svelecte is a great choice for building user-friendly forms and interfaces.