All Projects → algolia → Autocomplete

algolia / Autocomplete

Licence: mit
🔮 Fast and full-featured autocomplete library

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Autocomplete

Downshift
🏎 A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete, combobox or select dropdown components.
Stars: ✭ 10,183 (+703.08%)
Mutual labels:  accessible, autocomplete, select, dropdown
Ng Select
⭐ Native angular select component
Stars: ✭ 2,781 (+119.32%)
Mutual labels:  autocomplete, select, dropdown, typeahead
vue-single-select
single select dropdown with autocomplete
Stars: ✭ 43 (-96.61%)
Mutual labels:  autocomplete, select, typeahead, dropdown
react-native-autocomplete-dropdown
Dropdown Item picker with search and autocomplete (typeahead) functionality for react native
Stars: ✭ 87 (-93.14%)
Mutual labels:  autocomplete, select, typeahead, dropdown
svelecte
Selectize-like component written in Svelte, also usable as custom-element 💪⚡
Stars: ✭ 121 (-90.46%)
Mutual labels:  autocomplete, select, typeahead
Vanilla Select
Standalone replacement for select boxes.
Stars: ✭ 12 (-99.05%)
Mutual labels:  search, select, dropdown
Ng Bootstrap
Angular powered Bootstrap
Stars: ✭ 7,872 (+520.82%)
Mutual labels:  modal, dropdown, typeahead
Autocomplete.js
Simple autocomplete pure vanilla Javascript library.
Stars: ✭ 3,428 (+170.35%)
Mutual labels:  search, autocomplete, dropdown
choc-autocomplete
🏇 Autocomplete Component Package for Chakra UI
Stars: ✭ 286 (-77.44%)
Mutual labels:  autocomplete, select, dropdown
Autocomplete
Accessible autocomplete component for vanilla JavaScript and Vue.
Stars: ✭ 277 (-78.15%)
Mutual labels:  search, autocomplete, typeahead
React Dropdown Tree Select
Lightweight, accessible, customizable and fast Dropdown Tree Select component for React
Stars: ✭ 345 (-72.79%)
Mutual labels:  accessible, select, dropdown
Ember Select Box
🔠 A faux select box for Ember apps
Stars: ✭ 60 (-95.27%)
Mutual labels:  autocomplete, select, dropdown
ng-sq-ui
Flexible and easily customizable UI-kit for Angular 11+
Stars: ✭ 99 (-92.19%)
Mutual labels:  autocomplete, modal, typeahead
Material Ui Superselectfield
multiselection autocomplete dropdown component for Material-UI
Stars: ✭ 260 (-79.5%)
Mutual labels:  autocomplete, select, dropdown
frontal
An Angular select/dropdown component
Stars: ✭ 20 (-98.42%)
Mutual labels:  autocomplete, select, dropdown
Flow.launcher
Launch apps with greater control, search files effortlessly and extend features with community plugins. Fast and fluid productivity tool of choice that helps your workflow.
Stars: ✭ 288 (-77.29%)
Mutual labels:  spotlight, search, alfred
Svelte Select
A select component for Svelte apps
Stars: ✭ 414 (-67.35%)
Mutual labels:  autocomplete, select, typeahead
React Native Modal Dropdown
A react-native dropdown/picker/selector component for both Android & iOS.
Stars: ✭ 1,103 (-13.01%)
Mutual labels:  modal, select, dropdown
Angular Search Experience
Algolia + Angular = 🔥🔥🔥
Stars: ✭ 167 (-86.83%)
Mutual labels:  algolia, search, autocomplete
React Autosuggest
WAI-ARIA compliant React autosuggest component
Stars: ✭ 5,773 (+355.28%)
Mutual labels:  accessible, autocomplete, typeahead
Autocomplete

Autocomplete

A JavaScript library that lets you quickly build autocomplete experiences

Version MIT License

🚧 Autocomplete v1 is in an alpha phase and early feedback is welcome.

If you're looking for Autocomplete v0, which has been the production-ready version for the last years, head over to the master branch.

All you need to get started is:

  • A container to inject the experience into
  • Data to fill the autocomplete with
  • Any Virtual DOM solution (JavaScript, Preact, React, Vue, etc.)

The data that populates the autocomplete results are called sources. You can use whatever you want in your sources: a static set of searches terms, search results from an external source like an Algolia index, recent searches, and more.

By configuring just those two required parameters (container and getSources) you can have an interactive autocomplete experience. The library creates an input and provides the interactivity and accessibility attributes, but you're in full control of the DOM elements to output.

Screenshot

DocumentationAPIPlayground

Installation

The recommended way to get started is with the autocomplete-js package. It includes everything you need to render a JavaScript autocomplete experience.

Otherwise, you can install the autocomplete-core package if you want to build a renderer from scratch.

All Autocomplete packages are available on the npm registry.

yarn add @algolia/[email protected]
# or
npm install @algolia/[email protected]

If you don't want to use a package manager, you can use a standalone endpoint:

<script src="https://cdn.jsdelivr.net/npm/@algolia/[email protected]"></script>

Usage

To get started, you need a container for your autocomplete to go in. If you don't have one already, you can insert one into your markup:

<div id="autocomplete"></div>

Then, insert your autocomplete into it by calling the autocomplete function and providing the container. It can be a CSS selector or an Element.

Make sure to provide a container (e.g., a div), not an input. Autocomplete generates a fully accessible search box for you.

import { autocomplete } from '@algolia/autocomplete-js';

autocomplete({
  container: '#autocomplete',
  // ...
});

Continue reading our Getting Started guide.

Documentation

The documentation offers a few ways to learn about the Autocomplete library:

  • Read the Core Concepts to learn more about underlying principles, like Sources and State.
  • Follow the Guides to understand how to build common UX patterns.
  • Refer to API reference for a comprehensive list of parameters and options.
  • Try out the Playground where you can fork a basic implementation and play around.

You can find more on the documentation.

Support

Packages

Package Description Documentation
autocomplete-core Core primitives to build an Autocomplete experience Documentation
autocomplete-js JavaScript package for Autocomplete Documentation
autocomplete-plugin-recent-searches A plugin to add recent searches to Algolia Autocomplete Documentation
autocomplete-plugin-query-suggestions A plugin to add query suggestions to Algolia Autocomplete Documentation
autocomplete-plugin-algolia-insights A plugin to add Algolia Insights to Algolia Autocomplete Documentation
autocomplete-preset-algolia Presets to use Algolia features with Autocomplete Documentation
autocomplete-theme-classic Classic theme for Autocomplete Documentation

Showcase

See the awesome experiences people built with Autocomplete:

DocSearch Algolia Documentation

Sandboxes

Check out sandboxes using Autocomplete:

E-commerce React renderer
E-commerce React renderer
Recent Searches Query Suggestions Algolia Index Algolia Insights Preact Algolia Index React

You can find more sandboxes on CodeSandbox.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].