react-select vs downshift vs react-autocomplete
React Autocomplete and Select Component Libraries
react-selectdownshiftreact-autocompleteSimilar Packages:
React Autocomplete and Select Component Libraries

downshift, react-autocomplete, and react-select are React libraries for building autocomplete inputs, dropdowns, and selection interfaces. downshift is a headless utility that provides state management and accessibility primitives while leaving all rendering to the developer. react-autocomplete is a minimal, unstyled component using render props for basic autocomplete functionality. react-select is a fully-featured, styled select component with built-in support for async options, multi-selection, and theming. All three aim to simplify creating accessible selection UIs, but they differ significantly in philosophy, feature set, and maintenance status.

Npm Package Weekly Downloads Trend
3 Years
Github Stars Ranking
Stat Detail
Package
Downloads
Stars
Size
Issues
Publish
License
react-select7,125,54028,063726 kB4847 months agoMIT
downshift2,758,89512,2973.01 MB592 hours agoMIT
react-autocomplete57,6972,166-918 years agoMIT

Building Autocomplete UIs in React: downshift vs react-autocomplete vs react-select

When you need to add a search-as-you-type input or a dropdown selector to your React app, three packages often come up: downshift, react-autocomplete, and react-select. They all solve similar problems but with very different philosophies. Let’s break down how they work, where they shine, and what trade-offs you’ll face.

🧩 Core Philosophy: Control vs Convention

downshift gives you complete control over rendering and behavior. It’s a headless utility that manages the complex state logic (like keyboard navigation, focus, and ARIA attributes) but leaves every visual detail up to you.

// downshift: fully custom render
import { useCombobox } from 'downshift';

function CustomAutocomplete({ items }) {
  const {
    isOpen,
    getInputProps,
    getToggleButtonProps,
    getMenuProps,
    getItemProps,
    highlightedIndex
  } = useCombobox({ items });

  return (
    <div>
      <input {...getInputProps()} />
      <button {...getToggleButtonProps()}>▼</button>
      <ul {...getMenuProps()}>
        {isOpen && items.map((item, index) => (
          <li
            key={item.id}
            {...getItemProps({ item, index })}
            style={{ backgroundColor: highlightedIndex === index ? '#eee' : 'white' }}
          >
            {item.name}
          </li>
        ))}
      </ul>
    </div>
  );
}

react-autocomplete is a minimalist, unstyled component that handles basic autocomplete behavior but expects you to provide most of the rendering logic. It’s less opinionated than react-select but more prescriptive than downshift.

// react-autocomplete: render props pattern
import Autocomplete from 'react-autocomplete';

function BasicAutocomplete({ items }) {
  return (
    <Autocomplete
      items={items}
      getItemValue={(item) => item.name}
      renderItem={(item, isHighlighted) => (
        <div style={{ background: isHighlighted ? '#eee' : 'white' }}>
          {item.name}
        </div>
      )}
      inputProps={{ placeholder: 'Search...' }}
    />
  );
}

react-select is a fully-featured, styled component out of the box. It includes theming, async loading, multi-select, and many other features with minimal setup. You can customize it, but you’re working within its design system.

// react-select: batteries-included
import Select from 'react-select';

function StyledSelect({ options }) {
  return (
    <Select
      options={options}
      placeholder="Choose an option..."
      isSearchable
    />
  );
}

⚙️ Accessibility and Keyboard Navigation

All three packages aim for accessibility, but their approaches differ:

  • downshift strictly follows WAI-ARIA practices and gives you full control over ARIA attributes. You must implement proper roles and labels yourself, but the underlying state management ensures correct keyboard handling (arrow keys, Enter, Escape).

  • react-autocomplete provides basic keyboard navigation (arrow keys, Enter) but leaves ARIA implementation to you. Its documentation includes accessibility notes, but it’s not as comprehensive as downshift.

  • react-select ships with built-in ARIA compliance and extensive keyboard support (including type-to-search, tab navigation, and screen reader announcements). It’s the most accessible out of the box.

🎨 Styling and Customization

downshift has zero built-in styles. You bring your own CSS, CSS-in-JS, or styling library. This makes it ideal for design systems that require pixel-perfect control.

react-autocomplete also has no default styles, but its API is less flexible for complex layouts (e.g., it doesn’t easily support custom dropdown headers or footers).

react-select uses emotion for styling and supports theming via a styles prop or a theme function. You can override any part of its appearance, but escaping its component structure can be challenging if you need radically different markup.

// react-select: custom styling
const customStyles = {
  control: (provided) => ({
    ...provided,
    border: '2px solid blue',
    borderRadius: '8px'
  }),
  option: (provided, state) => ({
    ...provided,
    backgroundColor: state.isFocused ? '#f0f0f0' : 'white'
  })
};

<Select styles={customStyles} options={options} />

📦 Advanced Features

Async Loading:

  • downshift: You manage data fetching yourself; just update the items prop.
  • react-autocomplete: Pass an onMenuOpen or handle input changes to fetch data.
  • react-select: Built-in loadOptions prop for async options with loading indicators.

Multi-select:

  • downshift: Possible but requires manual state management for selected items.
  • react-autocomplete: Not supported out of the box.
  • react-select: Enable with isMulti prop.

Creatable Options (allowing users to add new items):

  • downshift: Implement yourself by checking input value against items.
  • react-autocomplete: Not built-in.
  • react-select: Use the CreatableSelect component from react-select/creatable.

⚠️ Maintenance Status

As of 2024:

  • react-autocomplete is deprecated. Its npm page states: "This package is no longer maintained. Please use downshift instead." New projects should avoid it.

  • downshift and react-select are actively maintained with regular updates and strong community support.

🛠️ Real-World Decision Guide

When to use downshift

  • You need full control over markup and behavior
  • You’re building a design system or custom component library
  • You require complex interactions (e.g., combobox + tag input)
  • Your team values explicit, testable state logic

When to use react-autocomplete

  • Do not use in new projects — it’s deprecated and lacks modern features
  • Only consider for maintaining legacy codebases that already depend on it

When to use react-select

  • You need a production-ready select with minimal effort
  • Your design aligns with its default look or can be themed easily
  • You require advanced features like async loading, multi-select, or creatable options
  • You want built-in accessibility without deep ARIA knowledge

📊 Summary Table

Featuredownshiftreact-autocompletereact-select
Maintenance✅ Active❌ Deprecated✅ Active
Styling💯 Zero styles (headless)💯 Zero styles🎨 Themed (emotion)
Accessibility✅ Manual ARIA⚠️ Basic✅ Built-in
Multi-select⚙️ Manual impl❌ NoisMulti prop
Async Support⚙️ Manual fetch⚙️ Manual fetchloadOptions
Learning CurveSteeperModerateGentle

💡 Final Recommendation

  • Start with react-select if you need a quick, robust solution that works out of the box.
  • Reach for downshift when you hit the limits of react-select or need to build something truly custom.
  • Avoid react-autocomplete for new work — its functionality is better served by the other two, and it’s no longer maintained.

The right choice depends on your project’s needs: speed and convention (react-select) versus flexibility and control (downshift).

How to Choose: react-select vs downshift vs react-autocomplete
  • react-select:

    Choose react-select when you need a production-ready, accessible select component with minimal setup. It's perfect for standard use cases like dropdowns, multi-select, async loading, and creatable options. Its built-in theming and comprehensive feature set make it a great choice when your design requirements align with its capabilities or can be reasonably customized.

  • downshift:

    Choose downshift when you need complete control over the UI and behavior of your autocomplete or select component. It's ideal for design systems, custom component libraries, or complex interactions that don't fit standard patterns. Be prepared to handle all rendering, styling, and some accessibility details yourself, though it provides excellent state management and keyboard navigation logic.

  • react-autocomplete:

    Do not choose react-autocomplete for new projects — it is officially deprecated according to its npm page, which recommends using downshift instead. Only consider it if you're maintaining an existing codebase that already depends on it, and plan to migrate to a maintained alternative soon.

README for react-select

NPM CircleCI Coverage Status Supported by Thinkmill

React-Select

The Select control for React. Initially built for use in KeystoneJS.

See react-select.com for live demos and comprehensive docs.

React Select is funded by Thinkmill and Atlassian. It represents a whole new approach to developing powerful React.js components that just work out of the box, while being extremely customisable.

For the story behind this component, watch Jed's talk at React Conf 2019 - building React Select

Features include:

  • Flexible approach to data, with customisable functions
  • Extensible styling API with emotion
  • Component Injection API for complete control over the UI behaviour
  • Controllable state props and modular architecture
  • Long-requested features like option groups, portal support, animation, and more

Using an older version?

Installation and usage

The easiest way to use react-select is to install it from npm and build it into your app with Webpack.

yarn add react-select

Then use it in your app:

With React Component

import React from 'react';
import Select from 'react-select';

const options = [
  { value: 'chocolate', label: 'Chocolate' },
  { value: 'strawberry', label: 'Strawberry' },
  { value: 'vanilla', label: 'Vanilla' },
];

class App extends React.Component {
  state = {
    selectedOption: null,
  };
  handleChange = (selectedOption) => {
    this.setState({ selectedOption }, () =>
      console.log(`Option selected:`, this.state.selectedOption)
    );
  };
  render() {
    const { selectedOption } = this.state;

    return (
      <Select
        value={selectedOption}
        onChange={this.handleChange}
        options={options}
      />
    );
  }
}

With React Hooks

import React, { useState } from 'react';
import Select from 'react-select';

const options = [
  { value: 'chocolate', label: 'Chocolate' },
  { value: 'strawberry', label: 'Strawberry' },
  { value: 'vanilla', label: 'Vanilla' },
];

export default function App() {
  const [selectedOption, setSelectedOption] = useState(null);

  return (
    <div className="App">
      <Select
        defaultValue={selectedOption}
        onChange={setSelectedOption}
        options={options}
      />
    </div>
  );
}

Props

Common props you may want to specify include:

  • autoFocus - focus the control when it mounts
  • className - apply a className to the control
  • classNamePrefix - apply classNames to inner elements with the given prefix
  • isDisabled - disable the control
  • isMulti - allow the user to select multiple values
  • isSearchable - allow the user to search for matching options
  • name - generate an HTML input with this name, containing the current value
  • onChange - subscribe to change events
  • options - specify the options the user can select from
  • placeholder - change the text displayed when no option is selected
  • noOptionsMessage - ({ inputValue: string }) => string | null - Text to display when there are no options
  • value - control the current value

See the props documentation for complete documentation on the props react-select supports.

Controllable Props

You can control the following props by providing values for them. If you don't, react-select will manage them for you.

  • value / onChange - specify the current value of the control
  • menuIsOpen / onMenuOpen / onMenuClose - control whether the menu is open
  • inputValue / onInputChange - control the value of the search input (changing this will update the available options)

If you don't provide these props, you can set the initial value of the state they control:

  • defaultValue - set the initial value of the control
  • defaultMenuIsOpen - set the initial open value of the menu
  • defaultInputValue - set the initial value of the search input

Methods

React-select exposes two public methods:

  • focus() - focus the control programmatically
  • blur() - blur the control programmatically

Customisation

Check the docs for more information on:

TypeScript

The v5 release represents a rewrite from JavaScript to TypeScript. The types for v4 and earlier releases are available at @types. See the TypeScript guide for how to use the types starting with v5.

Thanks

Thank you to everyone who has contributed to this project. It's been a wild ride.

If you like React Select, you should follow me on twitter!

Shout out to Joss Mackison, Charles Lee, Ben Conolly, Tom Walker, Nathan Bierema, Eric Bonow, Emma Hamilton, Dave Brotherstone, Brian Vaughn, and the Atlassian Design System team who along with many other contributors have made this possible ❤️

License

MIT Licensed. Copyright (c) Jed Watson 2022.