Menu
Libraries |
Category

simple-svelte-autocomplete

  • A Svelte-based autocomplete/select/typeahead component with no dependencies

  • Supports both simple arrays and arrays of objects as items

  • Key features:

    • Customizable label display (via field name or function)
    • Flexible search capabilities (can search by multiple fields)
    • Async item loading support
    • Single or multiple selection modes
    • Drag-and-drop reordering for multiple selections
  • Designed for Svelte applications

  • Works with both local data and async data loading

  • Extensive customization options:

    • Behavior controls (filtering, sorting, validation)
    • UI customization (slots for all major components)
    • Event handling (change, focus, blur, etc.)
    • CSS class customization
  • Built with accessibility in mind (supports tabindex, required attributes)

  • UI slots available for complete customization of:

    • Item rendering
    • No-results display
    • Loading indicators
    • Tags (for multiple selection)
    • Dropdown headers/footers
  • Demo available at http://simple-svelte-autocomplete.surge.sh/

sveltesvelte-v3svelte-componentssvelte-componentautocompletetypeahead

Comments