# react-select **Repository Path**: mirrors_JedWatson/react-select ## Basic Information - **Project Name**: react-select - **Description**: The Select Component for React.js - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2026-03-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![NPM](https://img.shields.io/npm/v/react-select.svg)](https://www.npmjs.com/package/react-select) [![CircleCI](https://circleci.com/gh/JedWatson/react-select/tree/master.svg?style=shield)](https://circleci.com/gh/JedWatson/react-select/tree/master) [![Coverage Status](https://coveralls.io/repos/JedWatson/react-select/badge.svg?branch=master&service=github)](https://coveralls.io/github/JedWatson/react-select?branch=master) [![Supported by Thinkmill](https://thinkmill.github.io/badge/heart.svg)](http://thinkmill.com.au/?utm_source=github&utm_medium=badge&utm_campaign=react-select) # React-Select The Select control for [React](https://reactjs.org). Initially built for use in [KeystoneJS](https://www.keystonejs.com). See [react-select.com](https://www.react-select.com) for live demos and comprehensive docs. `react-select` is funded by [Thinkmill](https://www.thinkmill.com.au) and [Atlassian](https://atlaskit.atlassian.com). We are an open source project that is continuously supported by the community. React Select helps you develop powerful select components that _just work_ out of the box, without stopping you from customising the parts that are important to you. For the story behind this component, watch Jed's talk at React Conf 2019 - [building React Select](https://youtu.be/yS0jUnmBujE) Features include: - Flexible approach to data, with customisable functions - Extensible styling API with [emotion](https://emotion.sh) - 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? - [v3, v4, and v5 upgrade guide](https://react-select.com/upgrade) - [v2 upgrade guide](https://react-select.com/upgrade-to-v2) - React Select v1 documentation and examples are available at [v1.react-select.com](https://v1.react-select.com) # 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: ```js 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 (