Full Code of downshift-js/downshift for AI

master f1862ed0633a cached
231 files
1.1 MB
287.2k tokens
385 symbols
1 requests
Download .txt
Showing preview only (1,195K chars total). Download the full file or copy to clipboard to get everything.
Repository: downshift-js/downshift
Branch: master
Commit: f1862ed0633a
Files: 231
Total size: 1.1 MB

Directory structure:
gitextract_fp6r61rc/

├── .all-contributorsrc
├── .flowconfig
├── .gitattributes
├── .github/
│   ├── ISSUE_TEMPLATE.md
│   ├── PULL_REQUEST_TEMPLATE.md
│   └── workflows/
│       └── validate.yml
├── .gitignore
├── .npmrc
├── .nvmrc
├── .prettierignore
├── CHANGELOG.md
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── babel.config.js
├── cypress/
│   ├── .eslintrc
│   ├── e2e/
│   │   ├── combobox.cy.js
│   │   ├── useCombobox.cy.js
│   │   ├── useMultipleCombobox.cy.js
│   │   ├── useMultipleSelect.cy.js
│   │   ├── useSelect.cy.js
│   │   └── useTagGroup.cy.js
│   ├── fixtures/
│   │   └── example.json
│   ├── plugins/
│   │   └── index.js
│   └── support/
│       └── e2e.js
├── cypress.config.js
├── docusaurus/
│   ├── pages/
│   │   ├── combobox.js
│   │   ├── index.js
│   │   ├── useCombobox.js
│   │   ├── useMultipleCombobox.js
│   │   ├── useMultipleSelect.js
│   │   ├── useSelect.js
│   │   ├── useTagGroup.css
│   │   ├── useTagGroup.tsx
│   │   ├── useTagGroupCombobox.css
│   │   └── useTagGroupCombobox.tsx
│   ├── plugins/
│   │   └── webpack5polyfills.js
│   ├── tsconfig.json
│   └── utils.ts
├── docusaurus.config.js
├── flow-typed/
│   └── npm/
│       └── downshift_v2.x.x.js.flow
├── jest.config.js
├── netlify.toml
├── other/
│   ├── MAINTAINING.md
│   ├── TYPESCRIPT_USAGE.md
│   ├── USERS.md
│   ├── manual-releases.md
│   ├── misc-tests/
│   │   ├── __tests__/
│   │   │   ├── build.js
│   │   │   └── preact.js
│   │   └── jest.config.js
│   ├── react-native/
│   │   ├── .babelrc
│   │   ├── __tests__/
│   │   │   ├── __snapshots__/
│   │   │   │   └── render-tests.js.snap
│   │   │   ├── onBlur-tests.js
│   │   │   ├── onChange-tests.js
│   │   │   └── render-tests.js
│   │   └── jest.config.js
│   └── ssr/
│       ├── __tests__/
│       │   └── index.js
│       └── jest.config.js
├── package.json
├── prettier.config.js
├── rollup.config.js
├── src/
│   ├── __mocks__/
│   │   ├── set-a11y-status.js
│   │   └── utils.js
│   ├── __tests__/
│   │   ├── .eslintrc
│   │   ├── __snapshots__/
│   │   │   ├── downshift.aria.js.snap
│   │   │   ├── downshift.get-item-props.js.snap
│   │   │   ├── downshift.get-menu-props.js.snap
│   │   │   ├── downshift.get-root-props.js.snap
│   │   │   ├── downshift.misc.js.snap
│   │   │   └── set-a11y-status.js.snap
│   │   ├── downshift.aria.js
│   │   ├── downshift.focus-restoration.js
│   │   ├── downshift.get-button-props.js
│   │   ├── downshift.get-input-props.js
│   │   ├── downshift.get-item-props.js
│   │   ├── downshift.get-label-props.js
│   │   ├── downshift.get-menu-props.js
│   │   ├── downshift.get-root-props.js
│   │   ├── downshift.lifecycle.js
│   │   ├── downshift.misc-with-utils-mocked.js
│   │   ├── downshift.misc.js
│   │   ├── downshift.props.js
│   │   ├── portal-support.js
│   │   ├── set-a11y-status.js
│   │   ├── utils.call-all-event-handlers.js
│   │   ├── utils.get-a11y-status-message.js
│   │   ├── utils.get-highlighted-index.js
│   │   ├── utils.handle-refs.js
│   │   ├── utils.pick-state.js
│   │   ├── utils.reset-id-counter.js
│   │   ├── utils.reset-id-counter.r18.js
│   │   └── utils.scroll-into-view.js
│   ├── downshift.js
│   ├── hooks/
│   │   ├── MIGRATION_V7.md
│   │   ├── MIGRATION_V8.md
│   │   ├── MIGRATION_V9.md
│   │   ├── README.md
│   │   ├── __tests__/
│   │   │   ├── __snapshots__/
│   │   │   │   └── utils.test.js.snap
│   │   │   └── utils.test.js
│   │   ├── index.ts
│   │   ├── reducer.js
│   │   ├── testUtils.js
│   │   ├── useCombobox/
│   │   │   ├── README.md
│   │   │   ├── __tests__/
│   │   │   │   ├── __snapshots__/
│   │   │   │   │   └── getInputProps.test.js.snap
│   │   │   │   ├── getInputProps.test.js
│   │   │   │   ├── getItemProps.test.js
│   │   │   │   ├── getLabelProps.test.js
│   │   │   │   ├── getMenuProps.test.js
│   │   │   │   ├── getToggleButtonProps.test.js
│   │   │   │   ├── memo.test.js
│   │   │   │   ├── props.test.js
│   │   │   │   ├── returnProps.test.js
│   │   │   │   └── utils.test.js
│   │   │   ├── index.js
│   │   │   ├── reducer.js
│   │   │   ├── stateChangeTypes.js
│   │   │   ├── testUtils.js
│   │   │   └── utils.js
│   │   ├── useMultipleSelection/
│   │   │   ├── MIGRATION_GUIDE.md
│   │   │   ├── README.md
│   │   │   ├── __tests__/
│   │   │   │   ├── getDropdownProps.test.js
│   │   │   │   ├── getSelectedItemProps.test.js
│   │   │   │   ├── memo.test.js
│   │   │   │   ├── props.test.js
│   │   │   │   ├── returnProps.test.js
│   │   │   │   └── utils.test.js
│   │   │   ├── index.js
│   │   │   ├── reducer.js
│   │   │   ├── stateChangeTypes.js
│   │   │   ├── testUtils.js
│   │   │   └── utils.js
│   │   ├── useSelect/
│   │   │   ├── README.md
│   │   │   ├── __tests__/
│   │   │   │   ├── __snapshots__/
│   │   │   │   │   └── getToggleButtonProps.test.js.snap
│   │   │   │   ├── getItemProps.test.js
│   │   │   │   ├── getLabelProps.test.js
│   │   │   │   ├── getMenuProps.test.js
│   │   │   │   ├── getToggleButtonProps.test.js
│   │   │   │   ├── memo.test.js
│   │   │   │   ├── props.test.js
│   │   │   │   ├── returnProps.test.js
│   │   │   │   └── utils.test.ts
│   │   │   ├── index.js
│   │   │   ├── reducer.js
│   │   │   ├── stateChangeTypes.js
│   │   │   ├── testUtils.js
│   │   │   └── utils/
│   │   │       ├── defaultProps.ts
│   │   │       ├── getItemIndexByCharacterKey.ts
│   │   │       ├── index.ts
│   │   │       └── propTypes.ts
│   │   ├── useTagGroup/
│   │   │   ├── README.md
│   │   │   ├── __tests__/
│   │   │   │   ├── getTagGroupProps.test.ts
│   │   │   │   ├── getTagProps.test.ts
│   │   │   │   ├── getTagRemoveProps.test.ts
│   │   │   │   ├── props.test.ts
│   │   │   │   ├── reducer.test.ts
│   │   │   │   ├── returnProps.test.ts
│   │   │   │   └── utils/
│   │   │   │       ├── defaultIds.ts
│   │   │   │       ├── defaultProps.ts
│   │   │   │       ├── index.ts
│   │   │   │       ├── renderTagGroup.tsx
│   │   │   │       └── renderUseTagGroup.ts
│   │   │   ├── index.ts
│   │   │   ├── index.types.ts
│   │   │   ├── reducer.ts
│   │   │   ├── stateChangeTypes.ts
│   │   │   └── utils/
│   │   │       ├── __tests__/
│   │   │       │   ├── useAccessibleDescription.test.ts
│   │   │       │   ├── useElementIds.legacy.test.ts
│   │   │       │   └── useElementIds.r18.test.ts
│   │   │       ├── getInitialState.ts
│   │   │       ├── getMergedProps.ts
│   │   │       ├── index.ts
│   │   │       ├── isStateEqual.ts
│   │   │       ├── useAccessibleDescription.ts
│   │   │       ├── useElementIds.ts
│   │   │       └── useRovingTagFocus.ts
│   │   ├── utils-ts/
│   │   │   ├── __tests__/
│   │   │   │   └── getItemAndIndex.test.ts
│   │   │   ├── callOnChangeProps.ts
│   │   │   ├── capitalizeString.ts
│   │   │   ├── getDefaultValue.ts
│   │   │   ├── getInitialValue.ts
│   │   │   ├── getItemAndIndex.ts
│   │   │   ├── index.ts
│   │   │   ├── propTypes.ts
│   │   │   ├── stateReducer.ts
│   │   │   ├── useA11yMessageStatus.ts
│   │   │   ├── useControlledReducer.ts
│   │   │   ├── useEnhancedReducer.ts
│   │   │   └── useIsInitialMount.ts
│   │   ├── utils.dropdown/
│   │   │   ├── __tests__/
│   │   │   │   ├── useElementIds.legacy.test.ts
│   │   │   │   └── useElementIds.r18.test.ts
│   │   │   ├── defaultProps.ts
│   │   │   ├── defaultStateValues.ts
│   │   │   ├── index.ts
│   │   │   ├── propTypes.ts
│   │   │   └── useElementIds.ts
│   │   └── utils.js
│   ├── index.ts
│   ├── is.macro.d.ts
│   ├── is.macro.js
│   ├── productionEnum.macro.d.ts
│   ├── productionEnum.macro.js
│   ├── stateChangeTypes.js
│   ├── utils-ts/
│   │   ├── __tests__/
│   │   │   ├── getState.test.ts
│   │   │   └── handleRefs.test.ts
│   │   ├── callAllEventHandlers.ts
│   │   ├── debounce.ts
│   │   ├── generateId.ts
│   │   ├── getState.ts
│   │   ├── handleRefs.ts
│   │   ├── index.ts
│   │   ├── noop.ts
│   │   ├── scrollIntoView.ts
│   │   ├── setA11yStatus.ts
│   │   ├── useLatestRef.ts
│   │   └── validatePropTypes.ts
│   └── utils.js
├── test/
│   ├── basic.test.js
│   ├── basic.test.tsx
│   ├── custom.test.js
│   ├── custom.test.tsx
│   ├── downshift.test.tsx
│   ├── setup.ts
│   ├── tsconfig.json
│   ├── useCombobox.test.tsx
│   ├── useMultipleSelect.test.tsx
│   └── useSelect.test.tsx
├── tsconfig.json
├── tsconfig.preact.json
└── typings/
    ├── index.d.ts
    └── index.legacy.d.ts

================================================
FILE CONTENTS
================================================

================================================
FILE: .all-contributorsrc
================================================
{
  "projectName": "downshift",
  "projectOwner": "downshift-js",
  "repoType": "github",
  "files": [
    "README.md"
  ],
  "imageSize": 100,
  "commit": false,
  "contributors": [
    {
      "login": "kentcdodds",
      "name": "Kent C. Dodds",
      "avatar_url": "https://avatars.githubusercontent.com/u/1500684?v=3",
      "profile": "https://kentcdodds.com",
      "contributions": [
        "code",
        "doc",
        "infra",
        "test",
        "review",
        "blog",
        "bug",
        "example",
        "ideas",
        "talk"
      ]
    },
    {
      "login": "ryanflorence",
      "name": "Ryan Florence",
      "avatar_url": "https://avatars0.githubusercontent.com/u/100200?v=4",
      "profile": "http://twitter.com/ryanflorence",
      "contributions": [
        "ideas"
      ]
    },
    {
      "login": "jaredly",
      "name": "Jared Forsyth",
      "avatar_url": "https://avatars3.githubusercontent.com/u/112170?v=4",
      "profile": "http://jaredforsyth.com",
      "contributions": [
        "ideas",
        "doc"
      ]
    },
    {
      "login": "jtmthf",
      "name": "Jack Moore",
      "avatar_url": "https://avatars1.githubusercontent.com/u/8162598?v=4",
      "profile": "https://github.com/jtmthf",
      "contributions": [
        "example"
      ]
    },
    {
      "login": "souporserious",
      "name": "Travis Arnold",
      "avatar_url": "https://avatars1.githubusercontent.com/u/2762082?v=4",
      "profile": "https://souporserious.com/",
      "contributions": [
        "code",
        "doc"
      ]
    },
    {
      "login": "marcysutton",
      "name": "Marcy Sutton",
      "avatar_url": "https://avatars0.githubusercontent.com/u/1045233?v=4",
      "profile": "http://marcysutton.com",
      "contributions": [
        "bug",
        "ideas"
      ]
    },
    {
      "login": "tizmagik",
      "name": "Jeremy Gayed",
      "avatar_url": "https://avatars2.githubusercontent.com/u/244704?v=4",
      "profile": "http://www.jeremygayed.com",
      "contributions": [
        "example"
      ]
    },
    {
      "login": "Haroenv",
      "name": "Haroen Viaene",
      "avatar_url": "https://avatars3.githubusercontent.com/u/6270048?v=4",
      "profile": "https://haroen.me",
      "contributions": [
        "example"
      ]
    },
    {
      "login": "rezof",
      "name": "monssef",
      "avatar_url": "https://avatars2.githubusercontent.com/u/15073300?v=4",
      "profile": "https://github.com/rezof",
      "contributions": [
        "example"
      ]
    },
    {
      "login": "FezVrasta",
      "name": "Federico Zivolo",
      "avatar_url": "https://avatars2.githubusercontent.com/u/5382443?v=4",
      "profile": "https://fezvrasta.github.io",
      "contributions": [
        "doc"
      ]
    },
    {
      "login": "divyenduz",
      "name": "Divyendu Singh",
      "avatar_url": "https://avatars3.githubusercontent.com/u/746482?v=4",
      "profile": "https://divyendusingh.com",
      "contributions": [
        "example",
        "code",
        "doc",
        "test"
      ]
    },
    {
      "login": "salmanmanekia",
      "name": "Muhammad Salman",
      "avatar_url": "https://avatars1.githubusercontent.com/u/841955?v=4",
      "profile": "https://github.com/salmanmanekia",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "psicotropicos",
      "name": "João Alberto",
      "avatar_url": "https://avatars3.githubusercontent.com/u/10820159?v=4",
      "profile": "https://twitter.com/psicotropidev",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "bernard-lin",
      "name": "Bernard Lin",
      "avatar_url": "https://avatars0.githubusercontent.com/u/16327281?v=4",
      "profile": "https://github.com/bernard-lin",
      "contributions": [
        "code",
        "doc"
      ]
    },
    {
      "login": "geoffdavis92",
      "name": "Geoff Davis",
      "avatar_url": "https://avatars1.githubusercontent.com/u/7330124?v=4",
      "profile": "https://geoffdavis.info",
      "contributions": [
        "example"
      ]
    },
    {
      "login": "reznord",
      "name": "Anup",
      "avatar_url": "https://avatars0.githubusercontent.com/u/3415488?v=4",
      "profile": "https://github.com/reznord",
      "contributions": [
        "doc"
      ]
    },
    {
      "login": "ferdinandsalis",
      "name": "Ferdinand Salis",
      "avatar_url": "https://avatars0.githubusercontent.com/u/340520?v=4",
      "profile": "http://ferdinandsalis.com",
      "contributions": [
        "bug",
        "code"
      ]
    },
    {
      "login": "tkh44",
      "name": "Kye Hohenberger",
      "avatar_url": "https://avatars2.githubusercontent.com/u/662750?v=4",
      "profile": "https://github.com/tkh44",
      "contributions": [
        "bug"
      ]
    },
    {
      "login": "jgoux",
      "name": "Julien Goux",
      "avatar_url": "https://avatars0.githubusercontent.com/u/1443499?v=4",
      "profile": "https://github.com/jgoux",
      "contributions": [
        "bug",
        "code",
        "test"
      ]
    },
    {
      "login": "jseminck",
      "name": "Joachim Seminck",
      "avatar_url": "https://avatars2.githubusercontent.com/u/9586897?v=4",
      "profile": "https://github.com/jseminck",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "the-simian",
      "name": "Jesse Harlin",
      "avatar_url": "https://avatars3.githubusercontent.com/u/954596?v=4",
      "profile": "http://jesseharlin.net/",
      "contributions": [
        "bug",
        "example"
      ]
    },
    {
      "login": "pbomb",
      "name": "Matt Parrish",
      "avatar_url": "https://avatars0.githubusercontent.com/u/1402095?v=4",
      "profile": "https://github.com/pbomb",
      "contributions": [
        "tool",
        "review"
      ]
    },
    {
      "login": "thomhos",
      "name": "thom",
      "avatar_url": "https://avatars1.githubusercontent.com/u/11661846?v=4",
      "profile": "http://thom.kr",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "vutran",
      "name": "Vu Tran",
      "avatar_url": "https://avatars2.githubusercontent.com/u/1088312?v=4",
      "profile": "http://twitter.com/tranvu",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "codiemullins",
      "name": "Codie Mullins",
      "avatar_url": "https://avatars1.githubusercontent.com/u/74193?v=4",
      "profile": "https://github.com/codiemullins",
      "contributions": [
        "code",
        "example"
      ]
    },
    {
      "login": "morajabi",
      "name": "Mohammad Rajabifard",
      "avatar_url": "https://avatars3.githubusercontent.com/u/12202757?v=4",
      "profile": "https://morajabi.me",
      "contributions": [
        "doc",
        "ideas"
      ]
    },
    {
      "login": "tansongyang",
      "name": "Frank Tan",
      "avatar_url": "https://avatars3.githubusercontent.com/u/9488719?v=4",
      "profile": "https://github.com/tansongyang",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "srph",
      "name": "Kier Borromeo",
      "avatar_url": "https://avatars3.githubusercontent.com/u/5093058?v=4",
      "profile": "https://kierb.com",
      "contributions": [
        "example"
      ]
    },
    {
      "login": "paul-veevers",
      "name": "Paul Veevers",
      "avatar_url": "https://avatars1.githubusercontent.com/u/8969456?v=4",
      "profile": "https://github.com/paul-veevers",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "Ronolibert",
      "name": "Ron Cruz",
      "avatar_url": "https://avatars2.githubusercontent.com/u/13622298?v=4",
      "profile": "https://github.com/Ronolibert",
      "contributions": [
        "doc"
      ]
    },
    {
      "login": "rickMcGavin",
      "name": "Rick McGavin",
      "avatar_url": "https://avatars1.githubusercontent.com/u/13605633?v=4",
      "profile": "http://rickmcgavin.github.io",
      "contributions": [
        "doc"
      ]
    },
    {
      "login": "vejersele",
      "name": "Jelle Versele",
      "avatar_url": "https://avatars0.githubusercontent.com/u/869669?v=4",
      "profile": "http://twitter.com/vejersele",
      "contributions": [
        "example"
      ]
    },
    {
      "login": "brentertz",
      "name": "Brent Ertz",
      "avatar_url": "https://avatars1.githubusercontent.com/u/202773?v=4",
      "profile": "https://github.com/brentertz",
      "contributions": [
        "ideas"
      ]
    },
    {
      "login": "Dajust",
      "name": "Justice Mba ",
      "avatar_url": "https://avatars3.githubusercontent.com/u/8015514?v=4",
      "profile": "https://github.com/Dajust",
      "contributions": [
        "code",
        "doc",
        "ideas"
      ]
    },
    {
      "login": "ellismarkf",
      "name": "Mark Ellis",
      "avatar_url": "https://avatars2.githubusercontent.com/u/3925281?v=4",
      "profile": "http://mfellis.com",
      "contributions": [
        "ideas"
      ]
    },
    {
      "login": "usandfriends",
      "name": "us͡an̸df͘rien͜ds͠",
      "avatar_url": "https://avatars1.githubusercontent.com/u/3241922?v=4",
      "profile": "http://ronak.io/",
      "contributions": [
        "bug",
        "code",
        "test"
      ]
    },
    {
      "login": "robin-drexler",
      "name": "Robin Drexler",
      "avatar_url": "https://avatars0.githubusercontent.com/u/474248?v=4",
      "profile": "https://www.robin-drexler.com/",
      "contributions": [
        "bug",
        "code"
      ]
    },
    {
      "login": "arturoromeroslc",
      "name": "Arturo Romero",
      "avatar_url": "https://avatars0.githubusercontent.com/u/7406639?v=4",
      "profile": "http://arturoromero.info/",
      "contributions": [
        "example"
      ]
    },
    {
      "login": "yp",
      "name": "yp",
      "avatar_url": "https://avatars1.githubusercontent.com/u/275483?v=4",
      "profile": "http://algolab.eu/pirola",
      "contributions": [
        "bug",
        "code",
        "test"
      ]
    },
    {
      "login": "ifyoumakeit",
      "name": "Dave Garwacke",
      "avatar_url": "https://avatars0.githubusercontent.com/u/3998604?v=4",
      "profile": "http://www.warbyparker.com",
      "contributions": [
        "doc"
      ]
    },
    {
      "login": "Drapegnik",
      "name": "Ivan Pazhitnykh",
      "avatar_url": "https://avatars3.githubusercontent.com/u/11758660?v=4",
      "profile": "http://linkedin.com/in/drapegnik",
      "contributions": [
        "code",
        "test"
      ]
    },
    {
      "login": "Rendez",
      "name": "Luis Merino",
      "avatar_url": "https://avatars0.githubusercontent.com/u/61776?v=4",
      "profile": "https://github.com/Rendez",
      "contributions": [
        "doc"
      ]
    },
    {
      "login": "arahansen",
      "name": "Andrew Hansen",
      "avatar_url": "https://avatars0.githubusercontent.com/u/8746094?v=4",
      "profile": "http://twitter.com/arahansen",
      "contributions": [
        "code",
        "test",
        "ideas"
      ]
    },
    {
      "login": "Jwhiles",
      "name": "John Whiles",
      "avatar_url": "https://avatars3.githubusercontent.com/u/20307225?v=4",
      "profile": "http://www.johnwhiles.com",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "wKovacs64",
      "name": "Justin Hall",
      "avatar_url": "https://avatars1.githubusercontent.com/u/1288694?v=4",
      "profile": "https://github.com/wKovacs64",
      "contributions": [
        "infra"
      ]
    },
    {
      "login": "petetnt",
      "name": "Pete Nykänen",
      "avatar_url": "https://avatars2.githubusercontent.com/u/7641760?v=4",
      "profile": "https://twitter.com/pete_tnt",
      "contributions": [
        "review"
      ]
    },
    {
      "login": "jaredpalmer",
      "name": "Jared Palmer",
      "avatar_url": "https://avatars2.githubusercontent.com/u/4060187?v=4",
      "profile": "http://jaredpalmer.com",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "philipyoungg",
      "name": "Philip Young",
      "avatar_url": "https://avatars3.githubusercontent.com/u/11477718?v=4",
      "profile": "http://www.philipyoungg.com",
      "contributions": [
        "code",
        "test",
        "ideas"
      ]
    },
    {
      "login": "alexandernanberg",
      "name": "Alexander Nanberg",
      "avatar_url": "https://avatars3.githubusercontent.com/u/8997319?v=4",
      "profile": "https://alexandernanberg.com",
      "contributions": [
        "doc",
        "code"
      ]
    },
    {
      "login": "httpete-ire",
      "name": "Pete Redmond",
      "avatar_url": "https://avatars2.githubusercontent.com/u/1556430?v=4",
      "profile": "https://httpete.com",
      "contributions": [
        "bug"
      ]
    },
    {
      "login": "Zashy",
      "name": "Nick Lavin",
      "avatar_url": "https://avatars2.githubusercontent.com/u/1706342?v=4",
      "profile": "https://github.com/Zashy",
      "contributions": [
        "bug",
        "code",
        "test"
      ]
    },
    {
      "login": "jlongster",
      "name": "James Long",
      "avatar_url": "https://avatars2.githubusercontent.com/u/17031?v=4",
      "profile": "http://jlongster.com",
      "contributions": [
        "bug",
        "code"
      ]
    },
    {
      "login": "cycomachead",
      "name": "Michael Ball",
      "avatar_url": "https://avatars0.githubusercontent.com/u/1505907?v=4",
      "profile": "http://michaelball.co",
      "contributions": [
        "bug",
        "code",
        "test"
      ]
    },
    {
      "login": "Julienng",
      "name": "CAVALEIRO Julien",
      "avatar_url": "https://avatars0.githubusercontent.com/u/8990614?v=4",
      "profile": "https://github.com/Julienng",
      "contributions": [
        "example"
      ]
    },
    {
      "login": "kimgronqvist",
      "name": "Kim Grönqvist",
      "avatar_url": "https://avatars1.githubusercontent.com/u/3421067?v=4",
      "profile": "http://www.kimgronqvist.se",
      "contributions": [
        "code",
        "test"
      ]
    },
    {
      "login": "tiansijie",
      "name": "Sijie",
      "avatar_url": "https://avatars2.githubusercontent.com/u/3675602?v=4",
      "profile": "http://sijietian.com",
      "contributions": [
        "bug",
        "code"
      ]
    },
    {
      "login": "donysukardi",
      "name": "Dony Sukardi",
      "avatar_url": "https://avatars0.githubusercontent.com/u/410792?v=4",
      "profile": "http://dsds.io",
      "contributions": [
        "example",
        "question",
        "code",
        "test"
      ]
    },
    {
      "login": "dmmulroy",
      "name": "Dillon Mulroy",
      "avatar_url": "https://avatars1.githubusercontent.com/u/2755722?v=4",
      "profile": "https://dillonmulroy.com",
      "contributions": [
        "doc"
      ]
    },
    {
      "login": "curtiswilkinson",
      "name": "Curtis Tate Wilkinson",
      "avatar_url": "https://avatars3.githubusercontent.com/u/12440573?v=4",
      "profile": "https://twitter.com/curtytate",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "brikou",
      "name": "Brice BERNARD",
      "avatar_url": "https://avatars3.githubusercontent.com/u/383212?v=4",
      "profile": "https://github.com/brikou",
      "contributions": [
        "bug",
        "code"
      ]
    },
    {
      "login": "xutopia",
      "name": "Tony Xu",
      "avatar_url": "https://avatars3.githubusercontent.com/u/14304503?v=4",
      "profile": "https://github.com/xutopia",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "newyork-anthonyng",
      "name": "Anthony Ng",
      "avatar_url": "https://avatars1.githubusercontent.com/u/14035529?v=4",
      "profile": "http://anthonyng.me",
      "contributions": [
        "doc"
      ]
    },
    {
      "login": "notruth",
      "name": "S S",
      "avatar_url": "https://avatars2.githubusercontent.com/u/11996139?v=4",
      "profile": "https://github.com/notruth",
      "contributions": [
        "question",
        "code",
        "doc",
        "ideas",
        "test"
      ]
    },
    {
      "login": "austintackaberry",
      "name": "Austin Tackaberry",
      "avatar_url": "https://avatars0.githubusercontent.com/u/29493001?v=4",
      "profile": "http://austintackaberry.co",
      "contributions": [
        "question",
        "code",
        "doc",
        "bug",
        "example",
        "ideas",
        "review",
        "test"
      ]
    },
    {
      "login": "jduthon",
      "name": "Jean Duthon",
      "avatar_url": "https://avatars3.githubusercontent.com/u/4168055?v=4",
      "profile": "https://github.com/jduthon",
      "contributions": [
        "bug",
        "code"
      ]
    },
    {
      "login": "Antontelesh",
      "name": "Anton Telesh",
      "avatar_url": "https://avatars3.githubusercontent.com/u/3889580?v=4",
      "profile": "http://antontelesh.github.io",
      "contributions": [
        "bug",
        "code"
      ]
    },
    {
      "login": "ericedem",
      "name": "Eric Edem",
      "avatar_url": "https://avatars3.githubusercontent.com/u/1060669?v=4",
      "profile": "https://github.com/ericedem",
      "contributions": [
        "code",
        "doc",
        "ideas",
        "test"
      ]
    },
    {
      "login": "indiesquidge",
      "name": "Austin Wood",
      "avatar_url": "https://avatars3.githubusercontent.com/u/3409645?v=4",
      "profile": "https://github.com/indiesquidge",
      "contributions": [
        "question",
        "doc",
        "review"
      ]
    },
    {
      "login": "mmmurray",
      "name": "Mark Murray",
      "avatar_url": "https://avatars3.githubusercontent.com/u/14275790?v=4",
      "profile": "https://github.com/mmmurray",
      "contributions": [
        "infra"
      ]
    },
    {
      "login": "gsimone",
      "name": "Gianmarco",
      "avatar_url": "https://avatars0.githubusercontent.com/u/1862172?v=4",
      "profile": "https://github.com/gsimone",
      "contributions": [
        "bug",
        "code"
      ]
    },
    {
      "login": "pastr",
      "name": "Emmanuel Pastor",
      "avatar_url": "https://avatars2.githubusercontent.com/u/6838136?v=4",
      "profile": "https://github.com/pastr",
      "contributions": [
        "example"
      ]
    },
    {
      "login": "dalehurwitz",
      "name": "dalehurwitz",
      "avatar_url": "https://avatars2.githubusercontent.com/u/10345034?v=4",
      "profile": "https://github.com/dalehurwitz",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "blobor",
      "name": "Bogdan Lobor",
      "avatar_url": "https://avatars1.githubusercontent.com/u/4813007?v=4",
      "profile": "https://github.com/blobor",
      "contributions": [
        "bug",
        "code"
      ]
    },
    {
      "login": "infiniteluke",
      "name": "Luke Herrington",
      "avatar_url": "https://avatars0.githubusercontent.com/u/1127238?v=4",
      "profile": "https://github.com/infiniteluke",
      "contributions": [
        "example"
      ]
    },
    {
      "login": "drobannx",
      "name": "Brandon Clemons",
      "avatar_url": "https://avatars2.githubusercontent.com/u/6361167?v=4",
      "profile": "https://github.com/drobannx",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "aMollusk",
      "name": "Kieran",
      "avatar_url": "https://avatars0.githubusercontent.com/u/10591587?v=4",
      "profile": "https://github.com/aMollusk",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "Brushedoctopus",
      "name": "Brushedoctopus",
      "avatar_url": "https://avatars3.githubusercontent.com/u/11570627?v=4",
      "profile": "https://github.com/Brushedoctopus",
      "contributions": [
        "bug",
        "code"
      ]
    },
    {
      "login": "cameronprattedwards",
      "name": "Cameron Edwards",
      "avatar_url": "https://avatars3.githubusercontent.com/u/5456216?v=4",
      "profile": "http://cameronpedwards.com",
      "contributions": [
        "code",
        "test"
      ]
    },
    {
      "login": "stereobooster",
      "name": "stereobooster",
      "avatar_url": "https://avatars2.githubusercontent.com/u/179534?v=4",
      "profile": "https://github.com/stereobooster",
      "contributions": [
        "code",
        "test"
      ]
    },
    {
      "login": "1Copenut",
      "name": "Trevor Pierce",
      "avatar_url": "https://avatars0.githubusercontent.com/u/934879?v=4",
      "profile": "https://github.com/1Copenut",
      "contributions": [
        "review"
      ]
    },
    {
      "login": "franklixuefei",
      "name": "Xuefei Li",
      "avatar_url": "https://avatars1.githubusercontent.com/u/1334982?v=4",
      "profile": "http://xuefei-frank.com",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "alfredringstad",
      "name": "Alfred Ringstad",
      "avatar_url": "https://avatars0.githubusercontent.com/u/7252803?v=4",
      "profile": "https://hyperlab.se",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "dovidweisz",
      "name": "D[oa]vid Weisz",
      "avatar_url": "https://avatars0.githubusercontent.com/u/6895497?v=4",
      "profile": "https://github.com/dovidweisz",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "RoystonS",
      "name": "Royston Shufflebotham",
      "avatar_url": "https://avatars0.githubusercontent.com/u/19773?v=4",
      "profile": "https://github.com/RoystonS",
      "contributions": [
        "bug",
        "code"
      ]
    },
    {
      "login": "MichaelDeBoey",
      "name": "Michaël De Boey",
      "avatar_url": "https://avatars3.githubusercontent.com/u/6643991?v=4",
      "profile": "http://michaeldeboey.be",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "EricHenry",
      "name": "Henry",
      "avatar_url": "https://avatars3.githubusercontent.com/u/4412771?v=4",
      "profile": "https://github.com/EricHenry",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "green-arrow",
      "name": "Andrew Walton",
      "avatar_url": "https://avatars3.githubusercontent.com/u/2180127?v=4",
      "profile": "http://www.greenarrow.me",
      "contributions": [
        "bug",
        "code",
        "test"
      ]
    },
    {
      "login": "arthurdenner",
      "name": "Arthur Denner",
      "avatar_url": "https://avatars0.githubusercontent.com/u/13774309?v=4",
      "profile": "https://github.com/arthurdenner",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "stipsan",
      "name": "Cody Olsen",
      "avatar_url": "https://avatars2.githubusercontent.com/u/81981?v=4",
      "profile": "http://twitter.com/stipsan",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "TLadd",
      "name": "Thomas Ladd",
      "avatar_url": "https://avatars0.githubusercontent.com/u/5084492?v=4",
      "profile": "https://github.com/TLadd",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "lixualinta",
      "name": "lixualinta",
      "avatar_url": "https://avatars3.githubusercontent.com/u/34634369?v=4",
      "profile": "https://github.com/lixualinta",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "JCofman",
      "name": "Jacob Cofman",
      "avatar_url": "https://avatars2.githubusercontent.com/u/2118956?v=4",
      "profile": "https://twitter.com/JCofman",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "jf248",
      "name": "Joshua Freedman",
      "avatar_url": "https://avatars3.githubusercontent.com/u/19275184?v=4",
      "profile": "https://github.com/jf248",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "AmyScript",
      "name": "Amy",
      "avatar_url": "https://avatars1.githubusercontent.com/u/24494020?v=4",
      "profile": "https://github.com/AmyScript",
      "contributions": [
        "example"
      ]
    },
    {
      "login": "roginfarrer",
      "name": "Rogin Farrer",
      "avatar_url": "https://avatars1.githubusercontent.com/u/9063669?v=4",
      "profile": "http://twitter.com/roginfarrer",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "rifler",
      "name": "Dmitrii Kanatnikov",
      "avatar_url": "https://avatars3.githubusercontent.com/u/871583",
      "profile": "https://github.com/rifler",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "dallonf",
      "name": "Dallon Feldner",
      "avatar_url": "https://avatars2.githubusercontent.com/u/346300?v=4",
      "profile": "https://github.com/dallonf",
      "contributions": [
        "bug",
        "code"
      ]
    },
    {
      "login": "samuelfullerthomas",
      "name": "Samuel Fuller Thomas",
      "avatar_url": "https://avatars2.githubusercontent.com/u/10165959?v=4",
      "profile": "https://samuelfullerthomas.com",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "audiolion",
      "name": "Ryan Castner",
      "avatar_url": "https://avatars1.githubusercontent.com/u/2430381?v=4",
      "profile": "http://audiolion.github.io",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "silviuavram",
      "name": "Silviu Alexandru Avram",
      "avatar_url": "https://avatars2.githubusercontent.com/u/11275392?v=4",
      "profile": "https://github.com/silviuavram",
      "contributions": [
        "bug",
        "code",
        "test"
      ]
    },
    {
      "login": "akronb",
      "name": "Anton Volkov",
      "avatar_url": "https://avatars1.githubusercontent.com/u/15676655?v=4",
      "profile": "https://github.com/akronb",
      "contributions": [
        "code",
        "test"
      ]
    },
    {
      "login": "keeganstreet",
      "name": "Keegan Street",
      "avatar_url": "https://avatars3.githubusercontent.com/u/513363?v=4",
      "profile": "http://keegan.st",
      "contributions": [
        "bug",
        "code"
      ]
    },
    {
      "login": "mdugue",
      "name": "Manuel Dugué",
      "avatar_url": "https://avatars1.githubusercontent.com/u/894149?v=4",
      "profile": "http://manueldugue.de",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "mkaradeniz",
      "name": "Max Karadeniz",
      "avatar_url": "https://avatars2.githubusercontent.com/u/12477983?v=4",
      "profile": "https://github.com/mkaradeniz",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "GonchuB",
      "name": "Gonzalo Beviglia",
      "avatar_url": "https://avatars3.githubusercontent.com/u/857221?v=4",
      "profile": "https://medium.com/@gonchub",
      "contributions": [
        "bug",
        "code",
        "review"
      ]
    },
    {
      "login": "kilrain",
      "name": "Brian Kilrain",
      "avatar_url": "https://avatars2.githubusercontent.com/u/47700687?v=4",
      "profile": "https://github.com/kilrain",
      "contributions": [
        "bug",
        "code",
        "test",
        "doc"
      ]
    },
    {
      "login": "rincedd",
      "name": "Gerd Zschaler",
      "avatar_url": "https://avatars0.githubusercontent.com/u/321265?v=4",
      "profile": "http://www.gzschaler.de",
      "contributions": [
        "code",
        "bug"
      ]
    },
    {
      "login": "gaskar",
      "name": "Karen Gasparyan",
      "avatar_url": "https://avatars1.githubusercontent.com/u/491166?v=4",
      "profile": "https://github.com/gaskar",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "kserjey",
      "name": "Sergey Korchinskiy",
      "avatar_url": "https://avatars1.githubusercontent.com/u/19753880?v=4",
      "profile": "https://github.com/kserjey",
      "contributions": [
        "bug",
        "code",
        "test"
      ]
    },
    {
      "login": "edygar",
      "name": "Edygar Oliveira",
      "avatar_url": "https://avatars.githubusercontent.com/u/566280?v=3",
      "profile": "https://github.com/edygar",
      "contributions": [
        "code",
        "bug"
      ]
    },
    {
      "login": "epeicher",
      "name": "epeicher",
      "avatar_url": "https://avatars1.githubusercontent.com/u/3519124?v=4",
      "profile": "https://github.com/epeicher",
      "contributions": [
        "bug"
      ]
    },
    {
      "login": "francoischalifour",
      "name": "François Chalifour",
      "avatar_url": "https://avatars3.githubusercontent.com/u/6137112?v=4",
      "profile": "https://francoischalifour.com",
      "contributions": [
        "code",
        "test",
        "platform"
      ]
    },
    {
      "login": "maxmalov",
      "name": "Maxim Malov",
      "avatar_url": "https://avatars2.githubusercontent.com/u/284129?v=4",
      "profile": "https://github.com/maxmalov",
      "contributions": [
        "bug",
        "code"
      ]
    },
    {
      "login": "epiqueras",
      "name": "Enrique Piqueras",
      "avatar_url": "https://avatars2.githubusercontent.com/u/19157096?v=4",
      "profile": "https://epiqueras.github.io",
      "contributions": [
        "ideas"
      ]
    },
    {
      "login": "layershifter",
      "name": "Oleksandr Fediashov",
      "avatar_url": "https://avatars0.githubusercontent.com/u/14183168?v=4",
      "profile": "https://twitter.com/layershifter",
      "contributions": [
        "code",
        "infra",
        "ideas"
      ]
    },
    {
      "login": "saitonakamura",
      "name": "Mikhail Bashurov",
      "avatar_url": "https://avatars1.githubusercontent.com/u/1552189?v=4",
      "profile": "https://github.com/saitonakamura",
      "contributions": [
        "code",
        "bug"
      ]
    },
    {
      "login": "jgodi",
      "name": "Joshua Godi",
      "avatar_url": "https://avatars1.githubusercontent.com/u/870799?v=4",
      "profile": "http://www.joshuagodi.com",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "lukyth",
      "name": "Kanitkorn Sujautra",
      "avatar_url": "https://avatars3.githubusercontent.com/u/7040242?v=4",
      "profile": "https://github.com/lukyth",
      "contributions": [
        "bug",
        "code"
      ]
    },
    {
      "login": "jorgemoya",
      "name": "Jorge Moya",
      "avatar_url": "https://avatars3.githubusercontent.com/u/196129?v=4",
      "profile": "https://github.com/jorgemoya",
      "contributions": [
        "code",
        "bug"
      ]
    },
    {
      "login": "KubaJastrz",
      "name": "Jakub Jastrzębski",
      "avatar_url": "https://avatars0.githubusercontent.com/u/6443113?v=4",
      "profile": "https://kubajastrz.com",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "mufasa71",
      "name": "Shukhrat Mukimov",
      "avatar_url": "https://avatars1.githubusercontent.com/u/626420?v=4",
      "profile": "https://github.com/mufasa71",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "jhonnymoreira",
      "name": "Jhonny Moreira",
      "avatar_url": "https://avatars0.githubusercontent.com/u/2177742?v=4",
      "profile": "http://jhonnymoreira.dev",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "stefanprobst",
      "name": "stefanprobst",
      "avatar_url": "https://avatars0.githubusercontent.com/u/20753323?v=4",
      "profile": "https://github.com/stefanprobst",
      "contributions": [
        "code",
        "test"
      ]
    },
    {
      "login": "louisaspicer",
      "name": "Louisa Spicer",
      "avatar_url": "https://avatars1.githubusercontent.com/u/20270031?v=4",
      "profile": "https://github.com/louisaspicer",
      "contributions": [
        "code",
        "bug"
      ]
    },
    {
      "login": "neet",
      "name": "Ryō Igarashi",
      "avatar_url": "https://avatars2.githubusercontent.com/u/19276905?v=4",
      "profile": "https://neet.love",
      "contributions": [
        "bug",
        "code"
      ]
    },
    {
      "login": "rlue",
      "name": "Ryan Lue",
      "avatar_url": "https://avatars2.githubusercontent.com/u/12194123?v=4",
      "profile": "http://ryanlue.com/",
      "contributions": [
        "doc"
      ]
    },
    {
      "login": "mattleonowicz",
      "name": "Mateusz Leonowicz",
      "avatar_url": "https://avatars3.githubusercontent.com/u/9438872?v=4",
      "profile": "https://github.com/mattleonowicz",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "atomicpages",
      "name": "Dennis Thompson",
      "avatar_url": "https://avatars2.githubusercontent.com/u/1824291?v=4",
      "profile": "https://github.com/atomicpages",
      "contributions": [
        "test"
      ]
    },
    {
      "login": "mayicodefuture",
      "name": "Maksym Boytsov",
      "avatar_url": "https://avatars1.githubusercontent.com/u/32408893?v=4",
      "profile": "https://mayicodefuture.live",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "IwalkAlone",
      "name": "Sergey Skrynnikov",
      "avatar_url": "https://avatars1.githubusercontent.com/u/5685800?v=4",
      "profile": "http://dataart.com",
      "contributions": [
        "code",
        "test"
      ]
    },
    {
      "login": "vvo",
      "name": "Vincent Voyer",
      "avatar_url": "https://avatars0.githubusercontent.com/u/123822?v=4",
      "profile": "https://www.linkedin.com/in/vvoyer",
      "contributions": [
        "doc"
      ]
    },
    {
      "login": "limejoe",
      "name": "limejoe",
      "avatar_url": "https://avatars2.githubusercontent.com/u/7977551?v=4",
      "profile": "https://github.com/limejoe",
      "contributions": [
        "code",
        "bug"
      ]
    },
    {
      "login": "k88manish",
      "name": "Manish Kumar",
      "avatar_url": "https://avatars2.githubusercontent.com/u/19614770?v=4",
      "profile": "https://github.com/k88manish",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "fcrezza",
      "name": "Anang Fachreza",
      "avatar_url": "https://avatars2.githubusercontent.com/u/48123020?v=4",
      "profile": "https://github.com/fcrezza",
      "contributions": [
        "doc",
        "example"
      ]
    },
    {
      "login": "ndeom",
      "name": "Nick Deom",
      "avatar_url": "https://avatars2.githubusercontent.com/u/56491159?v=4",
      "profile": "http://nickdeom.com",
      "contributions": [
        "code",
        "bug"
      ]
    },
    {
      "login": "clementgarbay",
      "name": "Clément Garbay",
      "avatar_url": "https://avatars3.githubusercontent.com/u/12433625?v=4",
      "profile": "https://github.com/clementgarbay",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "KaiminHuang",
      "name": "Kaimin Huang",
      "avatar_url": "https://avatars.githubusercontent.com/u/5600404?v=4",
      "profile": "https://github.com/KaiminHuang",
      "contributions": [
        "code",
        "bug"
      ]
    },
    {
      "login": "davewelling",
      "name": "David Welling",
      "avatar_url": "https://avatars.githubusercontent.com/u/1242456?v=4",
      "profile": "http://theredcircuit.com",
      "contributions": [
        "code",
        "bug",
        "ideas",
        "research"
      ]
    },
    {
      "login": "chandrasekhar1996",
      "name": "chandrasekhar1996",
      "avatar_url": "https://avatars.githubusercontent.com/u/33996892?v=4",
      "profile": "https://github.com/chandrasekhar1996",
      "contributions": [
        "bug",
        "code"
      ]
    },
    {
      "login": "drewbrend",
      "name": "Brendan Drew",
      "avatar_url": "https://avatars.githubusercontent.com/u/5375799?v=4",
      "profile": "https://github.com/drewbrend",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "jeanpan",
      "name": "Jean Pan",
      "avatar_url": "https://avatars.githubusercontent.com/u/1307026?v=4",
      "profile": "https://github.com/jeanpan",
      "contributions": [
        "code"
      ]
    },
    {
      "login": "tjenkinson",
      "name": "Tom Jenkinson",
      "avatar_url": "https://avatars.githubusercontent.com/u/3259993?v=4",
      "profile": "https://tjenkinson.me",
      "contributions": [
        "infra"
      ]
    },
    {
      "login": "aliceHendicott",
      "name": "Alice Hendicott",
      "avatar_url": "https://avatars.githubusercontent.com/u/40346716?v=4",
      "profile": "https://github.com/aliceHendicott",
      "contributions": [
        "code",
        "bug"
      ]
    },
    {
      "login": "zmdavis",
      "name": "Zach Davis",
      "avatar_url": "https://avatars.githubusercontent.com/u/25305144?v=4",
      "profile": "https://github.com/zmdavis",
      "contributions": [
        "code",
        "bug"
      ]
    }
  ],
  "repoHost": "https://github.com",
  "contributorsPerLine": 7,
  "skipCi": true,
  "commitConvention": "angular",
  "commitType": "docs"
}


================================================
FILE: .flowconfig
================================================
[ignore]
.*/node_modules/

[include]
./test

[libs]

[lints]
all=error

[options]


================================================
FILE: .gitattributes
================================================
* text=auto
*.js text eol=lf


================================================
FILE: .github/ISSUE_TEMPLATE.md
================================================
<!--
Thanks for your interest in the project. I appreciate bugs filed and PRs submitted!
Please make sure that you are familiar with and follow the Code of Conduct for
this project (found in the CODE_OF_CONDUCT.md file).

Please fill out this template with all the relevant information so we can
understand what's going on and fix the issue.

I'll probably ask you to submit the fix (after giving some direction). If you've
never done that before, that's great! Check this free short video tutorial to
learn how: http://kcd.im/pull-request
-->

- `downshift` version:
- `node` version:
- `npm` (or `yarn`) version:

**Relevant code or config**

```javascript
```

**What you did**:

**What happened**:

<!-- Please provide the full error message/screenshots/anything -->

**Reproduction repository**:

<!--
If possible, please create a repository that reproduces the issue with the
minimal amount of code possible.
-->

**Problem description**:

**Suggested solution**:


================================================
FILE: .github/PULL_REQUEST_TEMPLATE.md
================================================
<!--
Thanks for your interest in the project. Bugs filed and PRs submitted are appreciated!

Please make sure that you are familiar with and follow the Code of Conduct for
this project (found in the CODE_OF_CONDUCT.md file).

Also, please make sure you're familiar with and follow the instructions in the
contributing guidelines (found in the CONTRIBUTING.md file).

If you're new to contributing to open source projects, you might find this free
video course helpful: http://kcd.im/pull-request

Please fill out the information below to expedite the review and (hopefully)
merge of your pull request!
-->

# Pull Request

## What

<!-- What changes are being made? (What feature/bug is being fixed here?) -->

## Why

<!-- Why are these changes necessary? -->

## How

<!-- How were these changes implemented? -->

## Changes

<!-- List the specific changes made (files modified, configurations updated, etc.) -->

## Checklist

<!-- add "N/A" to the end of each line that's irrelevant to your changes -->
<!-- to check an item, place an "x" in the box like so: "- [x] Documentation" -->

- [ ] Documentation
- [ ] Tests
- [ ] TypeScript Types
- [ ] Ready to be merged
      <!-- In your opinion, is this ready to be merged as soon as it's reviewed? -->

<!-- feel free to add additional comments -->


================================================
FILE: .github/workflows/validate.yml
================================================
name: validate
on:
  push:
    branches:
      - '+([0-9])?(.{+([0-9]),x}).x'
      - 'master'
      - 'next'
      - 'next-major'
      - 'beta'
      - 'alpha'
      - '!all-contributors/**'
  pull_request: {}
jobs:
  main:
    # ignore all-contributors PRs
    if: ${{ !contains(github.head_ref, 'all-contributors') }}
    strategy:
      matrix:
        node: [20, 22, 24]
    runs-on: ubuntu-latest
    steps:
      - name: 🛑 Cancel Previous Runs
        uses: styfle/cancel-workflow-action@0.12.1
        with:
          access_token: ${{ secrets.GITHUB_TOKEN }}
      - name: ⬇️ Checkout repo
        uses: actions/checkout@v5

      - name: Increase watchers
        run:
          echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
          && sudo sysctl -p

      - name: ⎔ Setup node
        uses: actions/setup-node@v5
        with:
          node-version: ${{ matrix.node }}

      - name: 📥 Download deps
        uses: bahmutov/npm-install@v1
        with:
          useLockFile: false

      - name: ▶️ Run validate script
        run: npm run validate
        env:
          FORCE_COLOR: true

      - name: ⬆️ Upload coverage report
        uses: codecov/codecov-action@v5
        env:
          CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

  release:
    needs: main
    runs-on: ubuntu-latest
    if:
      ${{ github.repository == 'downshift-js/downshift' &&
      contains('refs/heads/master,refs/heads/beta,refs/heads/next,refs/heads/alpha',
      github.ref) && github.event_name == 'push' }}
    steps:
      - name: 🛑 Cancel Previous Runs
        uses: styfle/cancel-workflow-action@0.12.1
        with:
          access_token: ${{ secrets.GITHUB_TOKEN }}

      - name: ⬇️ Checkout repo
        uses: actions/checkout@v5

      - name: ⎔ Setup node
        uses: actions/setup-node@v5
        with:
          node-version: 24

      - name: 📥 Download deps
        uses: bahmutov/npm-install@v1
        with:
          useLockFile: false

      - name: 🏗 Run build script
        run: npm run build

      - name: 🚀 Release
        uses: cycjimmy/semantic-release-action@v6
        with:
          semantic_version: 24
          branches: |
            [
              '+([0-9])?(.{+([0-9]),x}).x',
              'master',
              'next',
              'next-major',
              {name: 'beta', prerelease: true},
              {name: 'alpha', prerelease: true}
            ]
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

================================================
FILE: .gitignore
================================================
node_modules
coverage
dist
.opt-in
.opt-out
.DS_Store
.next
.eslintcache
preact/

cypress/videos
cypress/screenshots

# these cause more harm than good
# when working with contributors
package-lock.json
yarn.lock
flow-coverage/

# Production
/build

# Generated files
.docusaurus
.cache-loader

# Misc
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*

# IDE settings
.idea


================================================
FILE: .npmrc
================================================
registry=https://registry.npmjs.org/
package-lock=false


================================================
FILE: .nvmrc
================================================
16.14.0


================================================
FILE: .prettierignore
================================================
node_modules/
coverage/
dist/
preact/
package-lock.json
package.json


================================================
FILE: CHANGELOG.md
================================================
# CHANGELOG

The changelog is automatically updated using
[semantic-release](https://github.com/semantic-release/semantic-release). You
can see it on the [releases page](../../releases).


================================================
FILE: CODE_OF_CONDUCT.md
================================================
# Contributor Covenant Code of Conduct

<!-- START doctoc generated TOC please keep comment here to allow auto update -->

<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

**Table of Contents**

- [Our Pledge](#our-pledge)
- [Our Standards](#our-standards)
- [Our Responsibilities](#our-responsibilities)
- [Scope](#scope)
- [Enforcement](#enforcement)
- [Attribution](#attribution)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of
experience, nationality, personal appearance, race, religion, or sexual identity
and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

- The use of sexualized language or imagery and unwelcome sexual attention or
  advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic
  address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a
  professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, or to ban temporarily or permanently any
contributor for other behaviors that they deem inappropriate, threatening,
offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at kent+coc@doddsfamily.us. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an
incident. Further details of specific enforcement policies may be posted
separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 1.4, available at [http://contributor-covenant.org/version/1/4][version]

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/


================================================
FILE: CONTRIBUTING.md
================================================
# Contributing

Thanks for being willing to contribute!

**Working on your first Pull Request?** You can learn how from this _free_
series [How to Contribute to an Open Source Project on GitHub][egghead]

## Project setup

1.  Fork and clone the repo
2.  `npm run setup` to setup and validate your clone of the project
3.  Create a branch for your PR

> Tip: Keep your `master` branch pointing at the original repository and make
> pull requests from branches on your fork. To do this, run:
>
> ```
> git remote add upstream https://github.com/downshift-js/downshift.git
> git fetch upstream
> git branch --set-upstream-to=upstream/master master
> ```
>
> This will add the original repository as a "remote" called "upstream," Then
> fetch the git information from that remote, then set your local `master`
> branch to use the upstream master branch whenever you run `git pull`. Then you
> can make all of your pull request branches based on this `master` branch.
> Whenever you want to update your version of `master`, do a regular `git pull`.

## Committing and Pushing changes

Please make sure to run the tests before you commit your changes. You can run
`npm run test:update` which will update any snapshots that need updating. Make
sure to include those changes (if they exist) in your commit. We also track the
bundle sizes in a `.size-snapshot.json` file, this will likely update when you
make changes to the codebase.

### Tests

There are quite a few test scripts that run as part of a `validate` script in
this project:

- lint - ESLint stuff, pretty basic. Please fix any errors/warnings :)
- build-and-test - This ensures that the built version of `downshift` is what we
  expect. These tests live in `other/misc-tests/__tests__`.
- test:cover - This is primarily unit tests on the source code and accounts for
  most of the coverage. We enforce 100% code coverage on this library. These
  tests live in `src/__tests__`
- test:ts - This runs `tsc` on the codebase to make sure the type script
  definitions are correct for the `tsx` files in the `test` directory.
- test:ssr - This ensures that downshift works with server-side rendering (it
  can run and render in an environment without the DOM). These tests live in
  `other/ssr/__tests__`
- test:cypress - This runs tests in an actual browser. It runs and tests the
  storybook examples. These tests live in `cypress/integration`.

### opt into git hooks

There are git hooks set up with this project that are automatically installed
when you install dependencies. They're really handy, but are turned off by
default (so as to not hinder new contributors). You can opt into these by
creating a file called `.opt-in` at the root of the project and putting this
inside:

```
pre-commit
```

## Help needed

Please checkout the [the open issues][issues]

Also, please watch the repo and respond to questions/bug reports/feature
requests! Thanks!

[egghead]:
  https://app.egghead.io/playlists/how-to-contribute-to-an-open-source-project-on-github
[all-contributors]: https://github.com/kentcdodds/all-contributors
[issues]: https://github.com/downshift-js/downshift/issues


================================================
FILE: LICENSE
================================================
The MIT License (MIT)
Copyright (c) 2017 PayPal

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


================================================
FILE: README.md
================================================
<h1 align="center">
  downshift 🏎
  <br>
  <img src="https://raw.githubusercontent.com/downshift-js/downshift/master/other/public/logo/downshift.svg" alt="downshift logo" title="downshift logo" width="300">
  <br>
</h1>
<p align="center" style="font-size: 1.2rem;">Primitives to build simple, flexible, WAI-ARIA compliant React
autocomplete, combobox or select dropdown components.</p>

> [Read the docs](https://downshift-js.com) |
> [See the intro blog post](https://kentcdodds.com/blog/introducing-downshift-for-react)
> |
> [Listen to the Episode 79 of the Full Stack Radio podcast](https://fullstackradio.com/79)

<hr />

[![Build Status][build-badge]][build]
[![Code Coverage][coverage-badge]][coverage]
[![downloads][downloads-badge]][npmcharts] [![version][version-badge]][package]
[![MIT License][license-badge]][license]

[![All Contributors](https://img.shields.io/badge/all_contributors-113-orange.svg?style=flat-square)](#contributors)
[![PRs Welcome][prs-badge]][prs] [![Chat][chat-badge]][chat]
[![Code of Conduct][coc-badge]][coc]
[![Join the community on Spectrum][spectrum-badge]][spectrum]

[![Supports React and Preact][react-badge]][react]
[![size][size-badge]][unpkg-dist] [![gzip size][gzip-badge]][unpkg-dist]
[![module formats: umd, cjs, and es][module-formats-badge]][unpkg-dist]

## The problem

You need an autocomplete, a combobox or a select experience in your application
and you want it to be accessible. You also want it to be simple and flexible to
account for your use cases. Finally, it should follow the [ARIA][aria] design
pattern for a [combobox][combobox-aria-example] or a
[select][select-aria-example], depending on your use case.

## This solution

The library offers a couple of solutions. The first solution, which is the one
we recommend you to try first, is a set of React hooks. Each hook provides the
stateful logic needed to make the corresponding component functional and
accessible. Navigate to the documentation for each by using the links in the
list below.

- [useSelect][useselect-readme] for a custom select component.
- [useCombobox][combobox-readme] for a combobox or autocomplete input.
- [useTagGroup][tag-group-readme] for a tag group component. Also useful to
  build a multiple selection combobox or select component with tags.

The second solution is the `Downshift` component, which can also be used to
create accessible combobox and select components, providing the logic in the
form of a render prop. It served as inspiration for developing the hooks and it
has been around for a while. It established a successful pattern for making
components accessible and functional while giving developers complete freedom
when building the UI.

Both _useSelect_ and _useCombobox_ support the latest ARIA combobox patterns for
W3C, which _Downshift_ does not. Consequently, we strongly recommend the you use
the hooks. The hooks have been migrated to the ARIA 1.2 combobox pattern in the
version 7 of _downshift_. There is a [Migration Guide][migration-guide-v7] that
documents the changes introduced in version 7.

The `README` on this page covers only the component while each hook has its own
`README` page. You can navigate to the [hooks page][hooks-readme] or go directly
to the hook you need by using the links in the list above.

For examples on how to use the hooks or the Downshift component, check out our
[docsite][docsite]!

**🚨 Use the Downshift hooks 🚨**

If you are new to the library, consider the _useSelect_ and _useCombobox_ hooks
as the first option. As mentioned above, the hooks benefit from the updated ARIA
patterns and are actively maintained and improved. If there are use cases that
are supported by the _Downshift_ component and not by the hooks, please create
an issue in our repo. The _Downshift_ component is going to be removed
completely once the hooks become mature.

### Downshift

This is a component that controls user interactions and state for you so you can
create autocomplete, combobox or select dropdown components. It uses a [render
prop][use-a-render-prop] which gives you maximum flexibility with a minimal API
because you are responsible for the rendering of everything and you simply apply
props to what you're rendering.

This differs from other solutions which render things for their use case and
then expose many options to allow for extensibility resulting in a bigger API
that is less flexible as well as making the implementation more complicated and
harder to contribute to.

> NOTE: The original use case of this component is autocomplete, however the API
> is powerful and flexible enough to build things like dropdowns as well.

## Table of Contents

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

- [Installation](#installation)
- [Usage](#usage)
- [Basic Props](#basic-props)
  - [children](#children)
  - [itemToString](#itemtostring)
  - [onChange](#onchange)
  - [stateReducer](#statereducer)
- [Advanced Props](#advanced-props)
  - [initialSelectedItem](#initialselecteditem)
  - [initialInputValue](#initialinputvalue)
  - [initialHighlightedIndex](#initialhighlightedindex)
  - [initialIsOpen](#initialisopen)
  - [defaultHighlightedIndex](#defaulthighlightedindex)
  - [defaultIsOpen](#defaultisopen)
  - [selectedItemChanged](#selecteditemchanged)
  - [getA11yStatusMessage](#geta11ystatusmessage)
  - [onSelect](#onselect)
  - [onStateChange](#onstatechange)
  - [onInputValueChange](#oninputvaluechange)
  - [itemCount](#itemcount)
  - [highlightedIndex](#highlightedindex)
  - [inputValue](#inputvalue)
  - [isOpen](#isopen)
  - [selectedItem](#selecteditem)
  - [id](#id)
  - [inputId](#inputid)
  - [labelId](#labelid)
  - [menuId](#menuid)
  - [getItemId](#getitemid)
  - [environment](#environment)
  - [onOuterClick](#onouterclick)
  - [scrollIntoView](#scrollintoview)
- [stateChangeTypes](#statechangetypes)
- [Control Props](#control-props)
- [Children Function](#children-function)
  - [prop getters](#prop-getters)
  - [actions](#actions)
  - [state](#state)
  - [props](#props)
- [Event Handlers](#event-handlers)
  - [default handlers](#default-handlers)
  - [customizing handlers](#customizing-handlers)
- [Utilities](#utilities)
  - [resetIdCounter](#resetidcounter)
- [React Native](#react-native)
  - [Gotchas](#gotchas)
- [Advanced React Component Patterns course](#advanced-react-component-patterns-course)
- [Examples](#examples)
- [FAQ](#faq)
- [Inspiration](#inspiration)
- [Other Solutions](#other-solutions)
- [Bindings for ReasonML](#bindings-for-reasonml)
- [Contributors](#contributors)
- [LICENSE](#license)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

## Installation

This module is distributed via [npm][npm] which is bundled with [node][node] and
should be installed as one of your project's `dependencies`:

```
npm install --save downshift
```

> This package also depends on `react`. Please make sure you have it installed
> as well.

> Note also this library supports `preact` out of the box. If you are using
> `preact` then use the corresponding module in the `preact/dist` folder. You
> can even `import Downshift from 'downshift/preact'` 👍

## Usage

> [Try it out in the browser][code-sandbox-try-it-out]

```jsx
import * as React from 'react'
import {render} from 'react-dom'
import Downshift from 'downshift'

const items = [
  {value: 'apple'},
  {value: 'pear'},
  {value: 'orange'},
  {value: 'grape'},
  {value: 'banana'},
]

render(
  <Downshift
    onChange={selection =>
      alert(selection ? `You selected ${selection.value}` : 'Selection Cleared')
    }
    itemToString={item => (item ? item.value : '')}
  >
    {({
      getInputProps,
      getItemProps,
      getLabelProps,
      getMenuProps,
      isOpen,
      inputValue,
      highlightedIndex,
      selectedItem,
      getRootProps,
    }) => (
      <div>
        <label {...getLabelProps()}>Enter a fruit</label>
        <div
          style={{display: 'inline-block'}}
          {...getRootProps({}, {suppressRefError: true})}
        >
          <input {...getInputProps()} />
        </div>
        <ul {...getMenuProps()}>
          {isOpen
            ? items
                .filter(item => !inputValue || item.value.includes(inputValue))
                .map((item, index) => (
                  <li
                    {...getItemProps({
                      key: item.value,
                      index,
                      item,
                      style: {
                        backgroundColor:
                          highlightedIndex === index ? 'lightgray' : 'white',
                        fontWeight: selectedItem === item ? 'bold' : 'normal',
                      },
                    })}
                  >
                    {item.value}
                  </li>
                ))
            : null}
        </ul>
      </div>
    )}
  </Downshift>,
  document.getElementById('root'),
)
```

There is also an [example without getRootProps][code-sandbox-no-get-root-props].

> Warning: The example without `getRootProps` is not fully accessible with
> screen readers as it's not possible to achieve the HTML structure suggested by
> ARIA. We recommend following the example with `getRootProps`. Examples on how
> to use `Downshift` component with and without `getRootProps` are on the
> [docsite](https://downshift-js.com/).

`Downshift` is the only component exposed by this package. It doesn't render
anything itself, it just calls the render function and renders that. ["Use a
render prop!"][use-a-render-prop]!
`<Downshift>{downshift => <div>/* your JSX here! */</div>}</Downshift>`.

## Basic Props

This is the list of props that you should probably know about. There are some
[advanced props](#advanced-props) below as well.

### children

> `function({})` | _required_

This is called with an object. Read more about the properties of this object in
the section "[Children Function](#children-function)".

### itemToString

> `function(item: any)` | defaults to: `item => (item ? String(item) : '')`

If your items are stored as, say, objects instead of strings, downshift still
needs a string representation for each one (e.g., to set `inputValue`).

**Note:** This callback _must_ include a null check: it is invoked with `null`
whenever the user abandons input via `<Esc>`.

### onChange

> `function(selectedItem: any, stateAndHelpers: object)` | optional, no useful
> default

Called when the selected item changes, either by the user selecting an item or
the user clearing the selection. Called with the item that was selected or
`null` and the new state of `downshift`. (see `onStateChange` for more info on
`stateAndHelpers`).

- `selectedItem`: The item that was just selected. `null` if the selection was
  cleared.
- `stateAndHelpers`: This is the same thing your `children` function is called
  with (see [Children Function](#children-function))

### stateReducer

> `function(state: object, changes: object)` | optional

**🚨 This is a really handy power feature 🚨**

This function will be called each time `downshift` sets its internal state (or
calls your `onStateChange` handler for control props). It allows you to modify
the state change that will take place which can give you fine grain control over
how the component interacts with user updates without having to use
[Control Props](#control-props). It gives you the current state and the state
that will be set, and you return the state that you want to set.

- `state`: The full current state of downshift.
- `changes`: These are the properties that are about to change. This also has a
  `type` property which you can learn more about in the
  [`stateChangeTypes`](#statechangetypes) section.

```jsx
const ui = (
  <Downshift stateReducer={stateReducer}>{/* your callback */}</Downshift>
)

function stateReducer(state, changes) {
  // this prevents the menu from being closed when the user
  // selects an item with a keyboard or mouse
  switch (changes.type) {
    case Downshift.stateChangeTypes.keyDownEnter:
    case Downshift.stateChangeTypes.clickItem:
      return {
        ...changes,
        isOpen: state.isOpen,
        highlightedIndex: state.highlightedIndex,
      }
    default:
      return changes
  }
}
```

> NOTE: This is only called when state actually changes. You should not attempt
> to use this to handle events. If you wish to handle events, put your event
> handlers directly on the elements (make sure to use the prop getters though!
> For example: `<input onBlur={handleBlur} />` should be
> `<input {...getInputProps({onBlur: handleBlur})} />`). Also, your reducer
> function should be "pure." This means it should do nothing other than return
> the state changes you want to have happen.

## Advanced Props

### initialSelectedItem

> `any` | defaults to `null`

Pass an item or an array of items that should be selected when downshift is
initialized.

### initialInputValue

> `string` | defaults to `''`

This is the initial input value when downshift is initialized.

### initialHighlightedIndex

> `number`/`null` | defaults to `defaultHighlightedIndex`

This is the initial value to set the highlighted index to when downshift is
initialized.

### initialIsOpen

> `boolean` | defaults to `defaultIsOpen`

This is the initial `isOpen` value when downshift is initialized.

### defaultHighlightedIndex

> `number`/`null` | defaults to `null`

This is the value to set the `highlightedIndex` to anytime downshift is reset,
when the selection is cleared, when an item is selected or when the inputValue
is changed.

### defaultIsOpen

> `boolean` | defaults to `false`

This is the value to set the `isOpen` to anytime downshift is reset, when the
the selection is cleared, or when an item is selected.

### selectedItemChanged

> `function(prevItem: any, item: any)` | defaults to:
> `(prevItem, item) => (prevItem !== item)`

Used to determine if the new `selectedItem` has changed compared to the previous
`selectedItem` and properly update Downshift's internal state.

### getA11yStatusMessage

> `function({/* see below */})` | default messages provided in English

This function is passed as props to a `Status` component nested within and
allows you to create your own assertive ARIA statuses.

A default `getA11yStatusMessage` function is provided that will check
`resultCount` and return "No results are available." or if there are results ,
"`resultCount` results are available, use up and down arrow keys to navigate.
Press Enter key to select."

The object you are passed to generate your status message has the following
properties:

<!-- This table was generated via http://www.tablesgenerator.com/markdown_tables -->

| property              | type            | description                                                                                  |
| --------------------- | --------------- | -------------------------------------------------------------------------------------------- |
| `highlightedIndex`    | `number`/`null` | The currently highlighted index                                                              |
| `highlightedItem`     | `any`           | The value of the highlighted item                                                            |
| `inputValue`          | `string`        | The current input value                                                                      |
| `isOpen`              | `boolean`       | The `isOpen` state                                                                           |
| `itemToString`        | `function(any)` | The `itemToString` function (see props) for getting the string value from one of the options |
| `previousResultCount` | `number`        | The total items showing in the dropdown the last time the status was updated                 |
| `resultCount`         | `number`        | The total items showing in the dropdown                                                      |
| `selectedItem`        | `any`           | The value of the currently selected item                                                     |

### onSelect

> `function(selectedItem: any, stateAndHelpers: object)` | optional, no useful
> default

Called when the user selects an item, regardless of the previous selected item.
Called with the item that was selected and the new state of `downshift`. (see
`onStateChange` for more info on `stateAndHelpers`).

- `selectedItem`: The item that was just selected
- `stateAndHelpers`: This is the same thing your `children` function is called
  with (see [Children Function](#children-function))

### onStateChange

> `function(changes: object, stateAndHelpers: object)` | optional, no useful
> default

This function is called anytime the internal state changes. This can be useful
if you're using downshift as a "controlled" component, where you manage some or
all of the state (e.g., isOpen, selectedItem, highlightedIndex, etc) and then
pass it as props, rather than letting downshift control all its state itself.
The parameters both take the shape of internal state
(`{highlightedIndex: number, inputValue: string, isOpen: boolean, selectedItem: any}`)
but differ slightly.

- `changes`: These are the properties that actually have changed since the last
  state change. This also has a `type` property which you can learn more about
  in the [`stateChangeTypes`](#statechangetypes) section.
- `stateAndHelpers`: This is the exact same thing your `children` function is
  called with (see [Children Function](#children-function))

> Tip: This function will be called any time _any_ state is changed. The best
> way to determine whether any particular state was changed, you can use
> `changes.hasOwnProperty('propName')`.

> NOTE: This is only called when state actually changes. You should not attempt
> to use this to handle events. If you wish to handle events, put your event
> handlers directly on the elements (make sure to use the prop getters though!
> For example: `<input onBlur={handleBlur} />` should be
> `<input {...getInputProps({onBlur: handleBlur})} />`).

### onInputValueChange

> `function(inputValue: string, stateAndHelpers: object)` | optional, no useful
> default

Called whenever the input value changes. Useful to use instead or in combination
of `onStateChange` when `inputValue` is a controlled prop to
[avoid issues with cursor positions](https://github.com/downshift-js/downshift/issues/217).

- `inputValue`: The current value of the input
- `stateAndHelpers`: This is the same thing your `children` function is called
  with (see [Children Function](#children-function))

### itemCount

> `number` | optional, defaults the number of times you call getItemProps

This is useful if you're using some kind of virtual listing component for
"windowing" (like
[`react-virtualized`](https://github.com/bvaughn/react-virtualized)).

### highlightedIndex

> `number` | **control prop** (read more about this in
> [the Control Props section](#control-props))

The index that should be highlighted

### inputValue

> `string` | **control prop** (read more about this in
> [the Control Props section](#control-props))

The value the input should have

### isOpen

> `boolean` | **control prop** (read more about this in
> [the Control Props section](#control-props))

Whether the menu should be considered open or closed. Some aspects of the
downshift component respond differently based on this value (for example, if
`isOpen` is true when the user hits "Enter" on the input field, then the item at
the `highlightedIndex` item is selected).

### selectedItem

> `any`/`Array(any)` | **control prop** (read more about this in
> [the Control Props section](#control-props))

The currently selected item.

### id

> `string` | defaults to a generated ID

You should not normally need to set this prop. It's only useful if you're server
rendering items (which each have an `id` prop generated based on the `downshift`
`id`). For more information see the `FAQ` below.

### inputId

> `string` | defaults to a generated ID

Used for `aria` attributes and the `id` prop of the element (`input`) you use
[`getInputProps`](#getinputprops) with.

### labelId

> `string` | defaults to a generated ID

Used for `aria` attributes and the `id` prop of the element (`label`) you use
[`getLabelProps`](#getlabelprops) with.

### menuId

> `string` | defaults to a generated ID

Used for `aria` attributes and the `id` prop of the element (`ul`) you use
[`getMenuProps`](#getmenuprops) with.

### getItemId

> `function(index)` | defaults to a function that generates an ID based on the
> index

Used for `aria` attributes and the `id` prop of the element (`li`) you use
[`getInputProps`](#getinputprops) with.

### environment

> `window` | defaults to `window`

This prop is only useful if you're rendering downshift within a different
`window` context from where your JavaScript is running; for example, an iframe
or a shadow-root. If the given context is lacking `document` and/or
`add|removeEventListener` on its prototype (as is the case for a shadow-root)
then you will need to pass in a custom object that is able to provide
[access to these properties](https://gist.github.com/Rendez/1dd55882e9b850dd3990feefc9d6e177)
for downshift.

### onOuterClick

> `function(stateAndHelpers: object)` | optional

A helper callback to help control internal state of downshift like `isOpen` as
mentioned in [this issue](https://github.com/downshift-js/downshift/issues/206).
The same behavior can be achieved using `onStateChange`, but this prop is
provided as a helper because it's a fairly common use-case if you're controlling
the `isOpen` state:

```jsx
const ui = (
  <Downshift
    isOpen={this.state.menuIsOpen}
    onOuterClick={() => this.setState({menuIsOpen: false})}
  >
    {/* your callback */}
  </Downshift>
)
```

This callback will only be called if `isOpen` is `true`.

### scrollIntoView

> `function(node: HTMLElement, menuNode: HTMLElement)` | defaults to internal
> implementation

This allows you to customize how the scrolling works when the highlighted index
changes. It receives the node to be scrolled to and the root node (the root node
you render in downshift). Internally we use
[`compute-scroll-into-view`](https://www.npmjs.com/package/compute-scroll-into-view)
so if you use that package then you wont be adding any additional bytes to your
bundle :)

## stateChangeTypes

There are a few props that expose changes to state
([`onStateChange`](#onstatechange) and [`stateReducer`](#statereducer)). For you
to make the most of these APIs, it's important for you to understand why state
is being changed. To accomplish this, there's a `type` property on the `changes`
object you get. This `type` corresponds to a `Downshift.stateChangeTypes`
property.

The list of all possible values this `type` property can take is defined in
[this file](https://github.com/downshift-js/downshift/blob/master/src/stateChangeTypes.js)
and is as follows:

- `Downshift.stateChangeTypes.unknown`
- `Downshift.stateChangeTypes.mouseUp`
- `Downshift.stateChangeTypes.itemMouseEnter`
- `Downshift.stateChangeTypes.keyDownArrowUp`
- `Downshift.stateChangeTypes.keyDownArrowDown`
- `Downshift.stateChangeTypes.keyDownEscape`
- `Downshift.stateChangeTypes.keyDownEnter`
- `Downshift.stateChangeTypes.keyDownHome`
- `Downshift.stateChangeTypes.keyDownEnd`
- `Downshift.stateChangeTypes.clickItem`
- `Downshift.stateChangeTypes.blurInput`
- `Downshift.stateChangeTypes.changeInput`
- `Downshift.stateChangeTypes.keyDownSpaceButton`
- `Downshift.stateChangeTypes.clickButton`
- `Downshift.stateChangeTypes.blurButton`
- `Downshift.stateChangeTypes.controlledPropUpdatedSelectedItem`
- `Downshift.stateChangeTypes.touchEnd`

See [`stateReducer`](#statereducer) for a concrete example on how to use the
`type` property.

## Control Props

downshift manages its own state internally and calls your `onChange` and
`onStateChange` handlers with any relevant changes. The state that downshift
manages includes: `isOpen`, `selectedItem`, `inputValue`, and
`highlightedIndex`. Your Children function (read more below) can be used to
manipulate this state and can likely support many of your use cases.

However, if more control is needed, you can pass any of these pieces of state as
a prop (as indicated above) and that state becomes controlled. As soon as
`this.props[statePropKey] !== undefined`, internally, `downshift` will determine
its state based on your prop's value rather than its own internal state. You
will be required to keep the state up to date (this is where `onStateChange`
comes in really handy), but you can also control the state from anywhere, be
that state from other components, `redux`, `react-router`, or anywhere else.

> Note: This is very similar to how normal controlled components work elsewhere
> in react (like `<input />`). If you want to learn more about this concept, you
> can learn about that from this the
> [Advanced React Component Patterns course](#advanced-react-component-patterns-course)

## Children Function

This is where you render whatever you want to based on the state of `downshift`.
You use it like so:

```javascript
const ui = (
  <Downshift>
    {downshift => (
      // use downshift utilities and state here, like downshift.isOpen,
      // downshift.getInputProps, etc.
      <div>{/* more jsx here */}</div>
    )}
  </Downshift>
)
```

The properties of this `downshift` object can be split into three categories as
indicated below:

### prop getters

> See
> [the blog post about prop getters](https://kentcdodds.com/blog/how-to-give-rendering-control-to-users-with-prop-getters)

> NOTE: These prop-getters provide important `aria-` attributes which are very
> important to your component being accessible. It's recommended that you
> utilize these functions and apply the props they give you to your components.

These functions are used to apply props to the elements that you render. This
gives you maximum flexibility to render what, when, and wherever you like. You
call these on the element in question (for example:
`<input {...getInputProps()}`)). It's advisable to pass all your props to that
function rather than applying them on the element yourself to avoid your props
being overridden (or overriding the props returned). For example:
`getInputProps({onKeyUp(event) {console.log(event)}})`.

<!-- This table was generated via http://www.tablesgenerator.com/markdown_tables -->

| property               | type              | description                                                                                    |
| ---------------------- | ----------------- | ---------------------------------------------------------------------------------------------- |
| `getToggleButtonProps` | `function({})`    | returns the props you should apply to any menu toggle button element you render.               |
| `getInputProps`        | `function({})`    | returns the props you should apply to the `input` element that you render.                     |
| `getItemProps`         | `function({})`    | returns the props you should apply to any menu item elements you render.                       |
| `getLabelProps`        | `function({})`    | returns the props you should apply to the `label` element that you render.                     |
| `getMenuProps`         | `function({},{})` | returns the props you should apply to the `ul` element (or root of your menu) that you render. |
| `getRootProps`         | `function({},{})` | returns the props you should apply to the root element that you render. It can be optional.    |

#### `getRootProps`

<details>

<summary>
  If you cannot render a div as the root element, then read this
</summary>

Most of the time, you can just render a `div` yourself and `Downshift` will
apply the props it needs to do its job (and you don't need to call this
function). However, if you're rendering a composite component (custom component)
as the root element, then you'll need to call `getRootProps` and apply that to
your root element (downshift will throw an error otherwise).

There are no required properties for this method.

Optional properties:

- `refKey`: if you're rendering a composite component, that component will need
  to accept a prop which it forwards to the root DOM element. Commonly, folks
  call this `innerRef`. So you'd call: `getRootProps({refKey: 'innerRef'})` and
  your composite component would forward like: `<div ref={props.innerRef} />`.
  It defaults to `ref`.

If you're rendering a composite component, `Downshift` checks that
`getRootProps` is called and that `refKey` is a prop of the returned composite
component. This is done to catch common causes of errors but, in some cases, the
check could fail even if the ref is correctly forwarded to the root DOM
component. In these cases, you can provide the object
`{suppressRefError : true}` as the second argument to `getRootProps` to
completely bypass the check.\
**Please use it with extreme care and only if you are absolutely sure that the
ref is correctly forwarded otherwise `Downshift` will unexpectedly fail.**\
See [#235](https://github.com/downshift-js/downshift/issues/235) for the
discussion that lead to this.

</details>

#### `getInputProps`

This method should be applied to the `input` you render. It is recommended that
you pass all props as an object to this method which will compose together any
of the event handlers you need to apply to the `input` while preserving the ones
that `downshift` needs to apply to make the `input` behave.

There are no required properties for this method.

Optional properties:

- `disabled`: If this is set to true, then no event handlers will be returned
  from `getInputProps` and a `disabled` prop will be returned (effectively
  disabling the input).

- `aria-label`: By default the menu will add an `aria-labelledby` that refers to
  the `<label>` rendered with `getLabelProps`. However, if you provide
  `aria-label` to give a more specific label that describes the options
  available, then `aria-labelledby` will not be provided and screen readers can
  use your `aria-label` instead.

#### `getLabelProps`

This method should be applied to the `label` you render. It is useful for
ensuring that the `for` attribute on the `<label>` (`htmlFor` as a react prop)
is the same as the `id` that appears on the `input`. If no `htmlFor` is provided
(the normal case) then an ID will be generated and used for the `input` and the
`label` `for` attribute.

There are no required properties for this method.

> Note: For accessibility purposes, calling this method is highly recommended.

#### `getMenuProps`

This method should be applied to the element which contains your list of items.
Typically, this will be a `<div>` or a `<ul>` that surrounds a `map` expression.
This handles the proper ARIA roles and attributes.

Optional properties:

- `refKey`: if you're rendering a composite component, that component will need
  to accept a prop which it forwards to the root DOM element. Commonly, folks
  call this `innerRef`. So you'd call: `getMenuProps({refKey: 'innerRef'})` and
  your composite component would forward like: `<ul ref={props.innerRef} />`.
  However, if you are just rendering a primitive component like `<div>`, there
  is no need to specify this property. It defaults to `ref`.

  Please keep in mind that menus, for accessibility purposes, should always be
  rendered, regardless of whether you hide it or not. Otherwise, `getMenuProps`
  may throw error if you unmount and remount the menu.

- `aria-label`: By default the menu will add an `aria-labelledby` that refers to
  the `<label>` rendered with `getLabelProps`. However, if you provide
  `aria-label` to give a more specific label that describes the options
  available, then `aria-labelledby` will not be provided and screen readers can
  use your `aria-label` instead.

In some cases, you might want to completely bypass the `refKey` check. Then you
can provide the object `{suppressRefError : true}` as the second argument to
`getMenuProps`. **Please use it with extreme care and only if you are absolutely
sure that the ref is correctly forwarded otherwise `Downshift` will unexpectedly
fail.**

```jsx
<ul {...getMenuProps()}>
  {!isOpen
    ? null
    : items.map((item, index) => (
        <li {...getItemProps({item, index, key: item.id})}>{item.name}</li>
      ))}
</ul>
```

> Note that for accessibility reasons it's best if you always render this
> element whether or not downshift is in an `isOpen` state.

#### `getItemProps`

The props returned from calling this function should be applied to any menu
items you render.

**This is an impure function**, so it should only be called when you will
actually be applying the props to an item.

<details>

<summary>What do you mean by impure function?</summary>

Basically just don't do this:

```jsx
items.map(item => {
  const props = getItemProps({item}) // we're calling it here
  if (!shouldRenderItem(item)) {
    return null // but we're not using props, and downshift thinks we are...
  }
  return <div {...props} />
})
```

Instead, you could do this:

```jsx
items.filter(shouldRenderItem).map(item => <div {...getItemProps({item})} />)
```

</details>

Required properties:

- `item`: this is the item data that will be selected when the user selects a
  particular item.

Optional properties:

- `index`: This is how `downshift` keeps track of your item when updating the
  `highlightedIndex` as the user keys around. By default, `downshift` will
  assume the `index` is the order in which you're calling `getItemProps`. This
  is often good enough, but if you find odd behavior, try setting this
  explicitly. It's probably best to be explicit about `index` when using a
  windowing library like `react-virtualized`.
- `disabled`: If this is set to `true`, then all of the downshift item event
  handlers will be omitted. Items will not be highlighted when hovered, and
  items will not be selected when clicked.

#### `getToggleButtonProps`

Call this and apply the returned props to a `button`. It allows you to toggle
the `Menu` component. You can definitely build something like this yourself (all
of the available APIs are exposed to you), but this is nice because it will also
apply all of the proper ARIA attributes.

Optional properties:

- `disabled`: If this is set to `true`, then all of the downshift button event
  handlers will be omitted (it wont toggle the menu when clicked).
- `aria-label`: The `aria-label` prop is in English. You should probably
  override this yourself so you can provide translations:

```jsx
const myButton = (
  <button
    {...getToggleButtonProps({
      'aria-label': translateWithId(isOpen ? 'close.menu' : 'open.menu'),
    })}
  />
)
```

### actions

These are functions you can call to change the state of the downshift component.

<!-- This table was generated via http://www.tablesgenerator.com/markdown_tables -->

| property                | type                                                             | description                                                                                                                                                                                                                                                            |
| ----------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `clearSelection`        | `function(cb: Function)`                                         | clears the selection                                                                                                                                                                                                                                                   |
| `clearItems`            | `function()`                                                     | Clears downshift's record of all the items. Only really useful if you render your items asynchronously within downshift. See [#186](https://github.com/downshift-js/downshift/issues/186)                                                                              |
| `closeMenu`             | `function(cb: Function)`                                         | closes the menu                                                                                                                                                                                                                                                        |
| `openMenu`              | `function(cb: Function)`                                         | opens the menu                                                                                                                                                                                                                                                         |
| `selectHighlightedItem` | `function(otherStateToSet: object, cb: Function)`                | selects the item that is currently highlighted                                                                                                                                                                                                                         |
| `selectItem`            | `function(item: any, otherStateToSet: object, cb: Function)`     | selects the given item                                                                                                                                                                                                                                                 |
| `selectItemAtIndex`     | `function(index: number, otherStateToSet: object, cb: Function)` | selects the item at the given index                                                                                                                                                                                                                                    |
| `setHighlightedIndex`   | `function(index: number, otherStateToSet: object, cb: Function)` | call to set a new highlighted index                                                                                                                                                                                                                                    |
| `toggleMenu`            | `function(otherStateToSet: object, cb: Function)`                | toggle the menu open state                                                                                                                                                                                                                                             |
| `reset`                 | `function(otherStateToSet: object, cb: Function)`                | this resets downshift's state to a reasonable default                                                                                                                                                                                                                  |
| `setItemCount`          | `function(count: number)`                                        | this sets the `itemCount`. Handy in situations where you're using windowing and the items are loaded asynchronously from within downshift (so you can't use the `itemCount` prop.                                                                                      |
| `unsetItemCount`        | `function()`                                                     | this unsets the `itemCount` which means the item count will be calculated instead by the `itemCount` prop or based on how many times you call `getItemProps`.                                                                                                          |
| `setState`              | `function(stateToSet: object, cb: Function)`                     | This is a general `setState` function. It uses downshift's `internalSetState` function which works with control props and calls your `onSelect`, `onChange`, etc. (Note, you can specify a `type` which you can reference in some other APIs like the `stateReducer`). |

> `otherStateToSet` refers to an object to set other internal state. It is
> recommended to avoid abusing this, but is available if you need it.

### state

These are values that represent the current state of the downshift component.

<!-- This table was generated via http://www.tablesgenerator.com/markdown_tables -->

| property           | type              | description                                    |
| ------------------ | ----------------- | ---------------------------------------------- |
| `highlightedIndex` | `number` / `null` | the currently highlighted item                 |
| `inputValue`       | `string` / `null` | the current value of the `getInputProps` input |
| `isOpen`           | `boolean`         | the menu open state                            |
| `selectedItem`     | `any`             | the currently selected item input              |

### props

As a convenience, the `id` and `itemToString` props which you pass to
`<Downshift />` are available here as well.

## Event Handlers

Downshift has a few events for which it provides implicit handlers. Several of
these handlers call `event.preventDefault()`. Their additional functionality is
described below.

### default handlers

- `ArrowDown`: if menu is closed, opens it and moves the highlighted index to
  `defaultHighlightedIndex + 1`, if `defaultHighlightedIndex` is provided, or to
  the top-most item, if not. If menu is open, it moves the highlighted index
  down by 1. If the shift key is held when this event fires, the highlighted
  index will jump down 5 indices instead of 1. NOTE: if the current highlighted
  index is within the bottom 5 indices, the top-most index will be highlighted.)

- `ArrowUp`: if menu is closed, opens it and moves the highlighted index to
  `defaultHighlightedIndex - 1`, if `defaultHighlightedIndex` is provided, or to
  the bottom-most item, if not. If menu is open, moves the highlighted index up
  by 1. If the shift key is held when this event fires, the highlighted index
  will jump up 5 indices instead of 1. NOTE: if the current highlighted index is
  within the top 5 indices, the bottom-most index will be highlighted.)

- `Home`: if menu is closed, it will not add any other behavior. If menu is
  open, the top-most index will get highlighted.

- `End`: if menu is closed, it will not add any other behavior. If menu is open,
  the bottom-most index will get highlighted.

- `Enter`: if the menu is open, selects the currently highlighted item. If the
  menu is open, the usual 'Enter' event is prevented by Downshift's default
  implicit enter handler; so, for example, a form submission event will not work
  as one might expect (though if the menu is closed the form submission will
  work normally). See below for customizing the handlers.

- `Escape`: will clear downshift's state. This means that `highlightedIndex`
  will be set to the `defaultHighlightedIndex` and the `isOpen` state will be
  set to the `defaultIsOpen`. If `isOpen` is already false, the `inputValue`
  will be set to an empty string and `selectedItem` will be set to `null`

### customizing handlers

You can provide your own event handlers to Downshift which will be called before
the default handlers:

```javascript
const ui = (
  <Downshift>
    {({getInputProps}) => (
      <input
        {...getInputProps({
          onKeyDown: event => {
            // your handler code
          },
        })}
      />
    )}
  </Downshift>
)
```

If you would like to prevent the default handler behavior in some cases, you can
set the event's `preventDownshiftDefault` property to `true`:

```javascript
const ui = (
  <Downshift>
    {({getInputProps}) => (
      <input
        {...getInputProps({
          onKeyDown: event => {
            if (event.key === 'Enter') {
              // Prevent Downshift's default 'Enter' behavior.
              event.nativeEvent.preventDownshiftDefault = true

              // your handler code
            }
          },
        })}
      />
    )}
  </Downshift>
)
```

If you would like to completely override Downshift's behavior for a handler, in
favor of your own, you can bypass prop getters:

```javascript
const ui = (
  <Downshift>
    {({getInputProps}) => (
      <input
        {...getInputProps()}
        onKeyDown={event => {
          // your handler code
        }}
      />
    )}
  </Downshift>
)
```

## Utilities

### resetIdCounter

Allows reseting the internal id counter which is used to generate unique ids for
Downshift component.

**This is unnecessary if you are using React 18 or newer**

You should never need to use this in the browser. Only if you are running an
universal React app that is rendered on the server you should call
[resetIdCounter](#resetidcounter) before every render so that the ids that get
generated on the server match the ids generated in the browser.

```javascript
import {resetIdCounter} from 'downshift';

resetIdCounter()
ReactDOMServer.renderToString(...);
```

## React Native

Since Downshift renders it's UI using render props, Downshift supports rendering
on React Native with ease. Use components like `<View>`, `<Text>`,
`<TouchableOpacity>` and others inside of your render method to generate awesome
autocomplete, dropdown, or selection components.

### Gotchas

- Your root view will need to either pass a ref to `getRootProps` or call
  `getRootProps` with `{ suppressRefError: true }`. This ref is used to catch a
  common set of errors around composite components.
  [Learn more in `getRootProps`](#getrootprops).
- When using a `<FlatList>` or `<ScrollView>`, be sure to supply the
  [`keyboardShouldPersistTaps`](https://facebook.github.io/react-native/docs/scrollview.html#keyboardshouldpersisttaps)
  prop to ensure that your text input stays focus, while allowing for taps on
  the touchables rendered for your items.

## Advanced React Component Patterns course

[Kent C. Dodds](https://twitter.com/kentcdodds) has created learning material
based on the patterns implemented in this component. You can find it on various
platforms:

1.  [egghead.io](https://egghead.io/courses/advanced-react-component-patterns)
2.  [Frontend Masters](https://frontendmasters.com/courses/advanced-react-patterns/)
3.  YouTube (for free!):
    [Part 1](https://www.youtube.com/watch?v=SuzutbwjUp8&list=PLV5CVI1eNcJgNqzNwcs4UKrlJdhfDjshf)
    and
    [Part 2](https://www.youtube.com/watch?v=ubXtOROjILU&list=PLV5CVI1eNcJgNqzNwcs4UKrlJdhfDjshf)

## Examples

> 🚨 We're in the process of moving all examples to the
> [downshift-examples](https://github.com/downshift-js/downshift-examples) repo
> (which you can open, interact with, and contribute back to live on
> [codesandbox](https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Findex.js&moduleview=1))

> 🚨 We're also in the process of updating our examples from the
> [downshift-docs](https://github.com/downshift-js/downshift-docs) repo which is
> actually used to create our docsite at [downshift-js.com][docsite]). Make sure
> to check it out for the most relevant Downshift examples or try out the new
> hooks that aim to replace Downshift.

**Ordered Examples:**

If you're just learning downshift, review these in order:

0.  [basic automplete with getRootProps](https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Fdownshift%2Fordered-examples%2F00-get-root-props-example.js%3A11%2C21&moduleview=1) -
    the same as example #1 but using the correct HTML structure as suggested by
    ARIA-WCAG.
1.  [basic autocomplete](https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Fdownshift%2Fordered-examples%2F01-basic-autocomplete.js&moduleview=1) -
    very bare bones, not styled at all. Good place to start.
2.  [styled autocomplete](https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Fdownshift%2Fordered-examples%2F02-complete-autocomplete.js&moduleview=1) -
    more complete autocomplete solution using emotion for styling and
    match-sorter for filtering the items.
3.  [typeahead](https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Fdownshift%2Fordered-examples%2F03-typeahead.js&moduleview=1) -
    Shows how to control the `selectedItem` so the selected item can be one of
    your items or whatever the user types.
4.  [multi-select](https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Fdownshift%2Fordered-examples%2F04-multi-select.js&moduleview=1) -
    Shows how to create a MultiDownshift component that allows for an array of
    selectedItems for multiple selection using a state reducer

**Other Examples:**

Check out these examples of more advanced use/edge cases:

- [dropdown with select by key](https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Fdownshift%2Fother-examples%2Fdropdown-select-by-key%2FCustomDropdown%2Findex.js&moduleview=1) -
  An example of using the render prop pattern to utilize a reusable component to
  provide the downshift dropdown component with the functionality of being able
  to highlight a selection item that starts with the key pressed.
- [using actions](https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Fdownshift%2Fother-examples%2Fusing-actions.js&moduleview=1) -
  An example of using one of downshift's actions as an event handler.
- [gmail's composition recipients field](https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Fdownshift%2Fother-examples%2Fgmail%2Findex.js&moduleview=1) -
  An example of a highly complex autocomplete component featuring asynchronously
  loading items, multiple selection, and windowing (with react-virtualized)
- [Downshift HOC and Compound Components](https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Fdownshift%2Fother-examples%2Fhoc%2Findex.js&moduleview=1) -
  An example of how to implementat compound components with
  `React.createContext` and a downshift higher order component. This is
  generally not recommended because the render prop API exported by downshift is
  generally good enough for everyone, but there's nothing technically wrong with
  doing something like this.

**Old Examples exist on [codesandbox.io][examples]:**

_🚨 This is a great contribution opportunity!_ These are examples that have not
yet been migrated to
[downshift-examples](https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Findex.js&moduleview=1).
You're more than welcome to make PRs to the examples repository to move these
examples over there.
[Watch this to learn how to contribute completely in the browser](https://www.youtube.com/watch?v=3PAQbhdkTtI&index=2&t=21s&list=PLV5CVI1eNcJgCrPH_e6d57KRUTiDZgs0u)

- [Integration with Apollo](https://codesandbox.io/s/m5zrvqj85p)
- [Integration with Redux](https://codesandbox.io/s/3ywmnyr0zq)
- [Integration with `react-instantsearch`](https://codesandbox.io/s/kvn0lpp83)
  from Algolia
- [Material-UI (1.0.0-beta.4) Combobox Using Downshift](https://codesandbox.io/s/QMGq4kAY)
- [Material-UI (1.0.0-beta.33) Multiple select with autocomplete](https://codesandbox.io/s/7k3674z09q)
- [Integration with `GenieJS`](https://codesandbox.io/s/jRLKrxwgl)
  ([learn more about `genie` here](https://github.com/kentcdodds/genie))
- [Handling and displaying errors](https://codesandbox.io/s/zKE37vorr)
- [Integration with React Router](https://codesandbox.io/s/ww9lwloy8w)
- [Windowing with `react-tiny-virtual-list`](https://codesandbox.io/s/v670kq95l)
- [Section/option group example](https://codesandbox.io/s/zx1kj58npl)
- [Integration with `fuzzaldrin-plus` (Fuzzy matching)](https://codesandbox.io/s/pyq3v4o3j)
- [Dropdown/select implementation with Bootstrap](https://codesandbox.io/s/53y8jvpj0k)
- [Multiple editable tag selection](https://codesandbox.io/s/o4yp9vmm8z)
- [Downshift implemented as compound components and a Higher Order Component](https://codesandbox.io/s/017n1jqo00)
  (exposes a `withDownshift` higher order component which you can use to get at
  the state, actions, prop getters in a rendered downshift tree).
- [Downshift Spectre.css example](https://codesandbox.io/s/M89KQOBRB)
- [Integration with `redux-form`](https://codesandbox.io/s/k594964z13)
- [Integration with `react-final-form`](https://codesandbox.io/s/qzm43nn2mj)
- [Provider Pattern](https://codesandbox.io/s/mywzk3133p) - how to avoid
  prop-drilling if you like to break up your render method into more components
- [React Native example](https://snack.expo.io/SkE0LxXqM)
- [React VR example](https://github.com/infiniteluke/bassdrop)
- [Multiple checkbox selection](https://codesandbox.io/s/5z711pmr3l)

## FAQ

<details>

<summary>
  How do I avoid the checksum error when server rendering (SSR)?
</summary>

The checksum error you're seeing is most likely due to the automatically
generated `id` and/or `htmlFor` prop you get from `getInputProps` and
`getLabelProps` (respectively). It could also be from the automatically
generated `id` prop you get from `getItemProps` (though this is not likely as
you're probably not rendering any items when rendering a downshift component on
the server).

To avoid these problems, simply call [resetIdCounter](#resetidcounter) before
`ReactDOM.renderToString`.

Alternatively you could provide your own ids via the id props where you render
`<Downshift />`:

```javascript
const ui = (
  <Downshift
    id="autocomplete"
    labelId="autocomplete-label"
    inputId="autocomplete-input"
    menuId="autocomplete-menu"
  >
    {({getInputProps, getLabelProps}) => <div>{/* your UI */}</div>}
  </Downshift>
)
```

</details>

## Inspiration

I was heavily inspired by [Ryan Florence][ryan]. Watch his (free) lesson about
["Compound Components"][compound-components-lecture]. Initially downshift was a
group of compound components using context to communicate. But then [Jared
Forsyth][jared] suggested I expose functions (the prop getters) to get props to
apply to the elements rendered. That bit of inspiration made a big impact on the
flexibility and simplicity of this API.

I also took a few ideas from the code in
[`react-autocomplete`][react-autocomplete] and [jQuery UI's
Autocomplete][jquery-complete].

You can watch me build the first iteration of `downshift` on YouTube:

- [Part 1](https://www.youtube.com/watch?v=2kzD1IjDy5s&list=PLV5CVI1eNcJh5CTgArGVwANebCrAh2OUE&index=11)
- [Part 2](https://www.youtube.com/watch?v=w1Z7Jvj08_s&list=PLV5CVI1eNcJh5CTgArGVwANebCrAh2OUE&index=10)

You'll find more recordings of me working on `downshift` on [my livestream
YouTube playlist][yt-playlist].

## Other Solutions

You can implement these other solutions using `downshift`, but if you'd prefer
to use these out of the box solutions, then that's fine too:

- [`react-select`](https://github.com/JedWatson/react-select)
- [`react-autosuggest`](https://github.com/moroshko/react-autosuggest)

## Bindings for ReasonML

If you're developing some React in ReasonML, check out the
[`Downshift` bindings](https://github.com/reasonml-community/bs-downshift) for
that.

## Contributors

Thanks goes to these people ([emoji key][emojis]):

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
  <tbody>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="https://kentcdodds.com"><img src="https://avatars.githubusercontent.com/u/1500684?v=3?s=100" width="100px;" alt="Kent C. Dodds"/><br /><sub><b>Kent C. Dodds</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=kentcdodds" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=kentcdodds" title="Documentation">📖</a> <a href="#infra-kentcdodds" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/downshift-js/downshift/commits?author=kentcdodds" title="Tests">⚠️</a> <a href="https://github.com/downshift-js/downshift/pulls?q=is%3Apr+reviewed-by%3Akentcdodds" title="Reviewed Pull Requests">👀</a> <a href="#blog-kentcdodds" title="Blogposts">📝</a> <a href="https://github.com/downshift-js/downshift/issues?q=author%3Akentcdodds" title="Bug reports">🐛</a> <a href="#example-kentcdodds" title="Examples">💡</a> <a href="#ideas-kentcdodds" title="Ideas, Planning, & Feedback">🤔</a> <a href="#talk-kentcdodds" title="Talks">📢</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://twitter.com/ryanflorence"><img src="https://avatars0.githubusercontent.com/u/100200?v=4?s=100" width="100px;" alt="Ryan Florence"/><br /><sub><b>Ryan Florence</b></sub></a><br /><a href="#ideas-ryanflorence" title="Ideas, Planning, & Feedback">🤔</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://jaredforsyth.com"><img src="https://avatars3.githubusercontent.com/u/112170?v=4?s=100" width="100px;" alt="Jared Forsyth"/><br /><sub><b>Jared Forsyth</b></sub></a><br /><a href="#ideas-jaredly" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/downshift-js/downshift/commits?author=jaredly" title="Documentation">📖</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/jtmthf"><img src="https://avatars1.githubusercontent.com/u/8162598?v=4?s=100" width="100px;" alt="Jack Moore"/><br /><sub><b>Jack Moore</b></sub></a><br /><a href="#example-jtmthf" title="Examples">💡</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://souporserious.com/"><img src="https://avatars1.githubusercontent.com/u/2762082?v=4?s=100" width="100px;" alt="Travis Arnold"/><br /><sub><b>Travis Arnold</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=souporserious" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=souporserious" title="Documentation">📖</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://marcysutton.com"><img src="https://avatars0.githubusercontent.com/u/1045233?v=4?s=100" width="100px;" alt="Marcy Sutton"/><br /><sub><b>Marcy Sutton</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Amarcysutton" title="Bug reports">🐛</a> <a href="#ideas-marcysutton" title="Ideas, Planning, & Feedback">🤔</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://www.jeremygayed.com"><img src="https://avatars2.githubusercontent.com/u/244704?v=4?s=100" width="100px;" alt="Jeremy Gayed"/><br /><sub><b>Jeremy Gayed</b></sub></a><br /><a href="#example-tizmagik" title="Examples">💡</a></td>
    </tr>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="https://haroen.me"><img src="https://avatars3.githubusercontent.com/u/6270048?v=4?s=100" width="100px;" alt="Haroen Viaene"/><br /><sub><b>Haroen Viaene</b></sub></a><br /><a href="#example-Haroenv" title="Examples">💡</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/rezof"><img src="https://avatars2.githubusercontent.com/u/15073300?v=4?s=100" width="100px;" alt="monssef"/><br /><sub><b>monssef</b></sub></a><br /><a href="#example-rezof" title="Examples">💡</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://fezvrasta.github.io"><img src="https://avatars2.githubusercontent.com/u/5382443?v=4?s=100" width="100px;" alt="Federico Zivolo"/><br /><sub><b>Federico Zivolo</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=FezVrasta" title="Documentation">📖</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://divyendusingh.com"><img src="https://avatars3.githubusercontent.com/u/746482?v=4?s=100" width="100px;" alt="Divyendu Singh"/><br /><sub><b>Divyendu Singh</b></sub></a><br /><a href="#example-divyenduz" title="Examples">💡</a> <a href="https://github.com/downshift-js/downshift/commits?author=divyenduz" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=divyenduz" title="Documentation">📖</a> <a href="https://github.com/downshift-js/downshift/commits?author=divyenduz" title="Tests">⚠️</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/salmanmanekia"><img src="https://avatars1.githubusercontent.com/u/841955?v=4?s=100" width="100px;" alt="Muhammad Salman"/><br /><sub><b>Muhammad Salman</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=salmanmanekia" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://twitter.com/psicotropidev"><img src="https://avatars3.githubusercontent.com/u/10820159?v=4?s=100" width="100px;" alt="João Alberto"/><br /><sub><b>João Alberto</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=psicotropicos" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/bernard-lin"><img src="https://avatars0.githubusercontent.com/u/16327281?v=4?s=100" width="100px;" alt="Bernard Lin"/><br /><sub><b>Bernard Lin</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=bernard-lin" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=bernard-lin" title="Documentation">📖</a></td>
    </tr>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="https://geoffdavis.info"><img src="https://avatars1.githubusercontent.com/u/7330124?v=4?s=100" width="100px;" alt="Geoff Davis"/><br /><sub><b>Geoff Davis</b></sub></a><br /><a href="#example-geoffdavis92" title="Examples">💡</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/reznord"><img src="https://avatars0.githubusercontent.com/u/3415488?v=4?s=100" width="100px;" alt="Anup"/><br /><sub><b>Anup</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=reznord" title="Documentation">📖</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://ferdinandsalis.com"><img src="https://avatars0.githubusercontent.com/u/340520?v=4?s=100" width="100px;" alt="Ferdinand Salis"/><br /><sub><b>Ferdinand Salis</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Aferdinandsalis" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=ferdinandsalis" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/tkh44"><img src="https://avatars2.githubusercontent.com/u/662750?v=4?s=100" width="100px;" alt="Kye Hohenberger"/><br /><sub><b>Kye Hohenberger</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Atkh44" title="Bug reports">🐛</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/jgoux"><img src="https://avatars0.githubusercontent.com/u/1443499?v=4?s=100" width="100px;" alt="Julien Goux"/><br /><sub><b>Julien Goux</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Ajgoux" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=jgoux" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=jgoux" title="Tests">⚠️</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/jseminck"><img src="https://avatars2.githubusercontent.com/u/9586897?v=4?s=100" width="100px;" alt="Joachim Seminck"/><br /><sub><b>Joachim Seminck</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=jseminck" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://jesseharlin.net/"><img src="https://avatars3.githubusercontent.com/u/954596?v=4?s=100" width="100px;" alt="Jesse Harlin"/><br /><sub><b>Jesse Harlin</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Athe-simian" title="Bug reports">🐛</a> <a href="#example-the-simian" title="Examples">💡</a></td>
    </tr>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/pbomb"><img src="https://avatars0.githubusercontent.com/u/1402095?v=4?s=100" width="100px;" alt="Matt Parrish"/><br /><sub><b>Matt Parrish</b></sub></a><br /><a href="#tool-pbomb" title="Tools">🔧</a> <a href="https://github.com/downshift-js/downshift/pulls?q=is%3Apr+reviewed-by%3Apbomb" title="Reviewed Pull Requests">👀</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://thom.kr"><img src="https://avatars1.githubusercontent.com/u/11661846?v=4?s=100" width="100px;" alt="thom"/><br /><sub><b>thom</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=thomhos" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://twitter.com/tranvu"><img src="https://avatars2.githubusercontent.com/u/1088312?v=4?s=100" width="100px;" alt="Vu Tran"/><br /><sub><b>Vu Tran</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=vutran" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/codiemullins"><img src="https://avatars1.githubusercontent.com/u/74193?v=4?s=100" width="100px;" alt="Codie Mullins"/><br /><sub><b>Codie Mullins</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=codiemullins" title="Code">💻</a> <a href="#example-codiemullins" title="Examples">💡</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://morajabi.me"><img src="https://avatars3.githubusercontent.com/u/12202757?v=4?s=100" width="100px;" alt="Mohammad Rajabifard"/><br /><sub><b>Mohammad Rajabifard</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=morajabi" title="Documentation">📖</a> <a href="#ideas-morajabi" title="Ideas, Planning, & Feedback">🤔</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/tansongyang"><img src="https://avatars3.githubusercontent.com/u/9488719?v=4?s=100" width="100px;" alt="Frank Tan"/><br /><sub><b>Frank Tan</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=tansongyang" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://kierb.com"><img src="https://avatars3.githubusercontent.com/u/5093058?v=4?s=100" width="100px;" alt="Kier Borromeo"/><br /><sub><b>Kier Borromeo</b></sub></a><br /><a href="#example-srph" title="Examples">💡</a></td>
    </tr>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/paul-veevers"><img src="https://avatars1.githubusercontent.com/u/8969456?v=4?s=100" width="100px;" alt="Paul Veevers"/><br /><sub><b>Paul Veevers</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=paul-veevers" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/Ronolibert"><img src="https://avatars2.githubusercontent.com/u/13622298?v=4?s=100" width="100px;" alt="Ron Cruz"/><br /><sub><b>Ron Cruz</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=Ronolibert" title="Documentation">📖</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://rickmcgavin.github.io"><img src="https://avatars1.githubusercontent.com/u/13605633?v=4?s=100" width="100px;" alt="Rick McGavin"/><br /><sub><b>Rick McGavin</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=rickMcGavin" title="Documentation">📖</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://twitter.com/vejersele"><img src="https://avatars0.githubusercontent.com/u/869669?v=4?s=100" width="100px;" alt="Jelle Versele"/><br /><sub><b>Jelle Versele</b></sub></a><br /><a href="#example-vejersele" title="Examples">💡</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/brentertz"><img src="https://avatars1.githubusercontent.com/u/202773?v=4?s=100" width="100px;" alt="Brent Ertz"/><br /><sub><b>Brent Ertz</b></sub></a><br /><a href="#ideas-brentertz" title="Ideas, Planning, & Feedback">🤔</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/Dajust"><img src="https://avatars3.githubusercontent.com/u/8015514?v=4?s=100" width="100px;" alt="Justice Mba "/><br /><sub><b>Justice Mba </b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=Dajust" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=Dajust" title="Documentation">📖</a> <a href="#ideas-Dajust" title="Ideas, Planning, & Feedback">🤔</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://mfellis.com"><img src="https://avatars2.githubusercontent.com/u/3925281?v=4?s=100" width="100px;" alt="Mark Ellis"/><br /><sub><b>Mark Ellis</b></sub></a><br /><a href="#ideas-ellismarkf" title="Ideas, Planning, & Feedback">🤔</a></td>
    </tr>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="http://ronak.io/"><img src="https://avatars1.githubusercontent.com/u/3241922?v=4?s=100" width="100px;" alt="us͡an̸df͘rien͜ds͠"/><br /><sub><b>us͡an̸df͘rien͜ds͠</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Ausandfriends" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=usandfriends" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=usandfriends" title="Tests">⚠️</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://www.robin-drexler.com/"><img src="https://avatars0.githubusercontent.com/u/474248?v=4?s=100" width="100px;" alt="Robin Drexler"/><br /><sub><b>Robin Drexler</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Arobin-drexler" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=robin-drexler" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://arturoromero.info/"><img src="https://avatars0.githubusercontent.com/u/7406639?v=4?s=100" width="100px;" alt="Arturo Romero"/><br /><sub><b>Arturo Romero</b></sub></a><br /><a href="#example-arturoromeroslc" title="Examples">💡</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://algolab.eu/pirola"><img src="https://avatars1.githubusercontent.com/u/275483?v=4?s=100" width="100px;" alt="yp"/><br /><sub><b>yp</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Ayp" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=yp" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=yp" title="Tests">⚠️</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://www.warbyparker.com"><img src="https://avatars0.githubusercontent.com/u/3998604?v=4?s=100" width="100px;" alt="Dave Garwacke"/><br /><sub><b>Dave Garwacke</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=ifyoumakeit" title="Documentation">📖</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://linkedin.com/in/drapegnik"><img src="https://avatars3.githubusercontent.com/u/11758660?v=4?s=100" width="100px;" alt="Ivan Pazhitnykh"/><br /><sub><b>Ivan Pazhitnykh</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=Drapegnik" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=Drapegnik" title="Tests">⚠️</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/Rendez"><img src="https://avatars0.githubusercontent.com/u/61776?v=4?s=100" width="100px;" alt="Luis Merino"/><br /><sub><b>Luis Merino</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=Rendez" title="Documentation">📖</a></td>
    </tr>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="http://twitter.com/arahansen"><img src="https://avatars0.githubusercontent.com/u/8746094?v=4?s=100" width="100px;" alt="Andrew Hansen"/><br /><sub><b>Andrew Hansen</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=arahansen" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=arahansen" title="Tests">⚠️</a> <a href="#ideas-arahansen" title="Ideas, Planning, & Feedback">🤔</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://www.johnwhiles.com"><img src="https://avatars3.githubusercontent.com/u/20307225?v=4?s=100" width="100px;" alt="John Whiles"/><br /><sub><b>John Whiles</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=Jwhiles" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/wKovacs64"><img src="https://avatars1.githubusercontent.com/u/1288694?v=4?s=100" width="100px;" alt="Justin Hall"/><br /><sub><b>Justin Hall</b></sub></a><br /><a href="#infra-wKovacs64" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://twitter.com/pete_tnt"><img src="https://avatars2.githubusercontent.com/u/7641760?v=4?s=100" width="100px;" alt="Pete Nykänen"/><br /><sub><b>Pete Nykänen</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/pulls?q=is%3Apr+reviewed-by%3Apetetnt" title="Reviewed Pull Requests">👀</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://jaredpalmer.com"><img src="https://avatars2.githubusercontent.com/u/4060187?v=4?s=100" width="100px;" alt="Jared Palmer"/><br /><sub><b>Jared Palmer</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=jaredpalmer" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://www.philipyoungg.com"><img src="https://avatars3.githubusercontent.com/u/11477718?v=4?s=100" width="100px;" alt="Philip Young"/><br /><sub><b>Philip Young</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=philipyoungg" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=philipyoungg" title="Tests">⚠️</a> <a href="#ideas-philipyoungg" title="Ideas, Planning, & Feedback">🤔</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://alexandernanberg.com"><img src="https://avatars3.githubusercontent.com/u/8997319?v=4?s=100" width="100px;" alt="Alexander Nanberg"/><br /><sub><b>Alexander Nanberg</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=alexandernanberg" title="Documentation">📖</a> <a href="https://github.com/downshift-js/downshift/commits?author=alexandernanberg" title="Code">💻</a></td>
    </tr>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="https://httpete.com"><img src="https://avatars2.githubusercontent.com/u/1556430?v=4?s=100" width="100px;" alt="Pete Redmond"/><br /><sub><b>Pete Redmond</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Ahttpete-ire" title="Bug reports">🐛</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/Zashy"><img src="https://avatars2.githubusercontent.com/u/1706342?v=4?s=100" width="100px;" alt="Nick Lavin"/><br /><sub><b>Nick Lavin</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3AZashy" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=Zashy" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=Zashy" title="Tests">⚠️</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://jlongster.com"><img src="https://avatars2.githubusercontent.com/u/17031?v=4?s=100" width="100px;" alt="James Long"/><br /><sub><b>James Long</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Ajlongster" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=jlongster" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://michaelball.co"><img src="https://avatars0.githubusercontent.com/u/1505907?v=4?s=100" width="100px;" alt="Michael Ball"/><br /><sub><b>Michael Ball</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Acycomachead" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=cycomachead" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=cycomachead" title="Tests">⚠️</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/Julienng"><img src="https://avatars0.githubusercontent.com/u/8990614?v=4?s=100" width="100px;" alt="CAVALEIRO Julien"/><br /><sub><b>CAVALEIRO Julien</b></sub></a><br /><a href="#example-Julienng" title="Examples">💡</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://www.kimgronqvist.se"><img src="https://avatars1.githubusercontent.com/u/3421067?v=4?s=100" width="100px;" alt="Kim Grönqvist"/><br /><sub><b>Kim Grönqvist</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=kimgronqvist" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=kimgronqvist" title="Tests">⚠️</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://sijietian.com"><img src="https://avatars2.githubusercontent.com/u/3675602?v=4?s=100" width="100px;" alt="Sijie"/><br /><sub><b>Sijie</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Atiansijie" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=tiansijie" title="Code">💻</a></td>
    </tr>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="http://dsds.io"><img src="https://avatars0.githubusercontent.com/u/410792?v=4?s=100" width="100px;" alt="Dony Sukardi"/><br /><sub><b>Dony Sukardi</b></sub></a><br /><a href="#example-donysukardi" title="Examples">💡</a> <a href="#question-donysukardi" title="Answering Questions">💬</a> <a href="https://github.com/downshift-js/downshift/commits?author=donysukardi" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=donysukardi" title="Tests">⚠️</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://dillonmulroy.com"><img src="https://avatars1.githubusercontent.com/u/2755722?v=4?s=100" width="100px;" alt="Dillon Mulroy"/><br /><sub><b>Dillon Mulroy</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=dmmulroy" title="Documentation">📖</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://twitter.com/curtytate"><img src="https://avatars3.githubusercontent.com/u/12440573?v=4?s=100" width="100px;" alt="Curtis Tate Wilkinson"/><br /><sub><b>Curtis Tate Wilkinson</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=curtiswilkinson" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/brikou"><img src="https://avatars3.githubusercontent.com/u/383212?v=4?s=100" width="100px;" alt="Brice BERNARD"/><br /><sub><b>Brice BERNARD</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Abrikou" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=brikou" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/xutopia"><img src="https://avatars3.githubusercontent.com/u/14304503?v=4?s=100" width="100px;" alt="Tony Xu"/><br /><sub><b>Tony Xu</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=xutopia" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://anthonyng.me"><img src="https://avatars1.githubusercontent.com/u/14035529?v=4?s=100" width="100px;" alt="Anthony Ng"/><br /><sub><b>Anthony Ng</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=newyork-anthonyng" title="Documentation">📖</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/notruth"><img src="https://avatars2.githubusercontent.com/u/11996139?v=4?s=100" width="100px;" alt="S S"/><br /><sub><b>S S</b></sub></a><br /><a href="#question-notruth" title="Answering Questions">💬</a> <a href="https://github.com/downshift-js/downshift/commits?author=notruth" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=notruth" title="Documentation">📖</a> <a href="#ideas-notruth" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/downshift-js/downshift/commits?author=notruth" title="Tests">⚠️</a></td>
    </tr>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="http://austintackaberry.co"><img src="https://avatars0.githubusercontent.com/u/29493001?v=4?s=100" width="100px;" alt="Austin Tackaberry"/><br /><sub><b>Austin Tackaberry</b></sub></a><br /><a href="#question-austintackaberry" title="Answering Questions">💬</a> <a href="https://github.com/downshift-js/downshift/commits?author=austintackaberry" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=austintackaberry" title="Documentation">📖</a> <a href="https://github.com/downshift-js/downshift/issues?q=author%3Aaustintackaberry" title="Bug reports">🐛</a> <a href="#example-austintackaberry" title="Examples">💡</a> <a href="#ideas-austintackaberry" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/downshift-js/downshift/pulls?q=is%3Apr+reviewed-by%3Aaustintackaberry" title="Reviewed Pull Requests">👀</a> <a href="https://github.com/downshift-js/downshift/commits?author=austintackaberry" title="Tests">⚠️</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/jduthon"><img src="https://avatars3.githubusercontent.com/u/4168055?v=4?s=100" width="100px;" alt="Jean Duthon"/><br /><sub><b>Jean Duthon</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Ajduthon" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=jduthon" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://antontelesh.github.io"><img src="https://avatars3.githubusercontent.com/u/3889580?v=4?s=100" width="100px;" alt="Anton Telesh"/><br /><sub><b>Anton Telesh</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3AAntontelesh" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=Antontelesh" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/ericedem"><img src="https://avatars3.githubusercontent.com/u/1060669?v=4?s=100" width="100px;" alt="Eric Edem"/><br /><sub><b>Eric Edem</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=ericedem" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=ericedem" title="Documentation">📖</a> <a href="#ideas-ericedem" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/downshift-js/downshift/commits?author=ericedem" title="Tests">⚠️</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/indiesquidge"><img src="https://avatars3.githubusercontent.com/u/3409645?v=4?s=100" width="100px;" alt="Austin Wood"/><br /><sub><b>Austin Wood</b></sub></a><br /><a href="#question-indiesquidge" title="Answering Questions">💬</a> <a href="https://github.com/downshift-js/downshift/commits?author=indiesquidge" title="Documentation">📖</a> <a href="https://github.com/downshift-js/downshift/pulls?q=is%3Apr+reviewed-by%3Aindiesquidge" title="Reviewed Pull Requests">👀</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/mmmurray"><img src="https://avatars3.githubusercontent.com/u/14275790?v=4?s=100" width="100px;" alt="Mark Murray"/><br /><sub><b>Mark Murray</b></sub></a><br /><a href="#infra-mmmurray" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/gsimone"><img src="https://avatars0.githubusercontent.com/u/1862172?v=4?s=100" width="100px;" alt="Gianmarco"/><br /><sub><b>Gianmarco</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Agsimone" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=gsimone" title="Code">💻</a></td>
    </tr>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/pastr"><img src="https://avatars2.githubusercontent.com/u/6838136?v=4?s=100" width="100px;" alt="Emmanuel Pastor"/><br /><sub><b>Emmanuel Pastor</b></sub></a><br /><a href="#example-pastr" title="Examples">💡</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/dalehurwitz"><img src="https://avatars2.githubusercontent.com/u/10345034?v=4?s=100" width="100px;" alt="dalehurwitz"/><br /><sub><b>dalehurwitz</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=dalehurwitz" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/blobor"><img src="https://avatars1.githubusercontent.com/u/4813007?v=4?s=100" width="100px;" alt="Bogdan Lobor"/><br /><sub><b>Bogdan Lobor</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Ablobor" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=blobor" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/infiniteluke"><img src="https://avatars0.githubusercontent.com/u/1127238?v=4?s=100" width="100px;" alt="Luke Herrington"/><br /><sub><b>Luke Herrington</b></sub></a><br /><a href="#example-infiniteluke" title="Examples">💡</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/drobannx"><img src="https://avatars2.githubusercontent.com/u/6361167?v=4?s=100" width="100px;" alt="Brandon Clemons"/><br /><sub><b>Brandon Clemons</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=drobannx" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/aMollusk"><img src="https://avatars0.githubusercontent.com/u/10591587?v=4?s=100" width="100px;" alt="Kieran"/><br /><sub><b>Kieran</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=aMollusk" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/Brushedoctopus"><img src="https://avatars3.githubusercontent.com/u/11570627?v=4?s=100" width="100px;" alt="Brushedoctopus"/><br /><sub><b>Brushedoctopus</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3ABrushedoctopus" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=Brushedoctopus" title="Code">💻</a></td>
    </tr>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="http://cameronpedwards.com"><img src="https://avatars3.githubusercontent.com/u/5456216?v=4?s=100" width="100px;" alt="Cameron Edwards"/><br /><sub><b>Cameron Edwards</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=cameronprattedwards" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=cameronprattedwards" title="Tests">⚠️</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/stereobooster"><img src="https://avatars2.githubusercontent.com/u/179534?v=4?s=100" width="100px;" alt="stereobooster"/><br /><sub><b>stereobooster</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=stereobooster" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=stereobooster" title="Tests">⚠️</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/1Copenut"><img src="https://avatars0.githubusercontent.com/u/934879?v=4?s=100" width="100px;" alt="Trevor Pierce"/><br /><sub><b>Trevor Pierce</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/pulls?q=is%3Apr+reviewed-by%3A1Copenut" title="Reviewed Pull Requests">👀</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://xuefei-frank.com"><img src="https://avatars1.githubusercontent.com/u/1334982?v=4?s=100" width="100px;" alt="Xuefei Li"/><br /><sub><b>Xuefei Li</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=franklixuefei" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://hyperlab.se"><img src="https://avatars0.githubusercontent.com/u/7252803?v=4?s=100" width="100px;" alt="Alfred Ringstad"/><br /><sub><b>Alfred Ringstad</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=alfredringstad" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/dovidweisz"><img src="https://avatars0.githubusercontent.com/u/6895497?v=4?s=100" width="100px;" alt="D[oa]vid Weisz"/><br /><sub><b>D[oa]vid Weisz</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=dovidweisz" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/RoystonS"><img src="https://avatars0.githubusercontent.com/u/19773?v=4?s=100" width="100px;" alt="Royston Shufflebotham"/><br /><sub><b>Royston Shufflebotham</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3ARoystonS" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=RoystonS" title="Code">💻</a></td>
    </tr>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="http://michaeldeboey.be"><img src="https://avatars3.githubusercontent.com/u/6643991?v=4?s=100" width="100px;" alt="Michaël De Boey"/><br /><sub><b>Michaël De Boey</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=MichaelDeBoey" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/EricHenry"><img src="https://avatars3.githubusercontent.com/u/4412771?v=4?s=100" width="100px;" alt="Henry"/><br /><sub><b>Henry</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=EricHenry" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://www.greenarrow.me"><img src="https://avatars3.githubusercontent.com/u/2180127?v=4?s=100" width="100px;" alt="Andrew Walton"/><br /><sub><b>Andrew Walton</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Agreen-arrow" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=green-arrow" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=green-arrow" title="Tests">⚠️</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/arthurdenner"><img src="https://avatars0.githubusercontent.com/u/13774309?v=4?s=100" width="100px;" alt="Arthur Denner"/><br /><sub><b>Arthur Denner</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=arthurdenner" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://twitter.com/stipsan"><img src="https://avatars2.githubusercontent.com/u/81981?v=4?s=100" width="100px;" alt="Cody Olsen"/><br /><sub><b>Cody Olsen</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=stipsan" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/TLadd"><img src="https://avatars0.githubusercontent.com/u/5084492?v=4?s=100" width="100px;" alt="Thomas Ladd"/><br /><sub><b>Thomas Ladd</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=TLadd" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/lixualinta"><img src="https://avatars3.githubusercontent.com/u/34634369?v=4?s=100" width="100px;" alt="lixualinta"/><br /><sub><b>lixualinta</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=lixualinta" title="Code">💻</a></td>
    </tr>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="https://twitter.com/JCofman"><img src="https://avatars2.githubusercontent.com/u/2118956?v=4?s=100" width="100px;" alt="Jacob Cofman"/><br /><sub><b>Jacob Cofman</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=JCofman" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/jf248"><img src="https://avatars3.githubusercontent.com/u/19275184?v=4?s=100" width="100px;" alt="Joshua Freedman"/><br /><sub><b>Joshua Freedman</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=jf248" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/AmyScript"><img src="https://avatars1.githubusercontent.com/u/24494020?v=4?s=100" width="100px;" alt="Amy"/><br /><sub><b>Amy</b></sub></a><br /><a href="#example-AmyScript" title="Examples">💡</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://twitter.com/roginfarrer"><img src="https://avatars1.githubusercontent.com/u/9063669?v=4?s=100" width="100px;" alt="Rogin Farrer"/><br /><sub><b>Rogin Farrer</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=roginfarrer" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/rifler"><img src="https://avatars3.githubusercontent.com/u/871583?s=100" width="100px;" alt="Dmitrii Kanatnikov"/><br /><sub><b>Dmitrii Kanatnikov</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=rifler" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/dallonf"><img src="https://avatars2.githubusercontent.com/u/346300?v=4?s=100" width="100px;" alt="Dallon Feldner"/><br /><sub><b>Dallon Feldner</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Adallonf" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=dallonf" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://samuelfullerthomas.com"><img src="https://avatars2.githubusercontent.com/u/10165959?v=4?s=100" width="100px;" alt="Samuel Fuller Thomas"/><br /><sub><b>Samuel Fuller Thomas</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=samuelfullerthomas" title="Code">💻</a></td>
    </tr>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="http://audiolion.github.io"><img src="https://avatars1.githubusercontent.com/u/2430381?v=4?s=100" width="100px;" alt="Ryan Castner"/><br /><sub><b>Ryan Castner</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=audiolion" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/silviuavram"><img src="https://avatars2.githubusercontent.com/u/11275392?v=4?s=100" width="100px;" alt="Silviu Alexandru Avram"/><br /><sub><b>Silviu Alexandru Avram</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Asilviuavram" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=silviuavram" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=silviuavram" title="Tests">⚠️</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/akronb"><img src="https://avatars1.githubusercontent.com/u/15676655?v=4?s=100" width="100px;" alt="Anton Volkov"/><br /><sub><b>Anton Volkov</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=akronb" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=akronb" title="Tests">⚠️</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://keegan.st"><img src="https://avatars3.githubusercontent.com/u/513363?v=4?s=100" width="100px;" alt="Keegan Street"/><br /><sub><b>Keegan Street</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Akeeganstreet" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=keeganstreet" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://manueldugue.de"><img src="https://avatars1.githubusercontent.com/u/894149?v=4?s=100" width="100px;" alt="Manuel Dugué"/><br /><sub><b>Manuel Dugué</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=mdugue" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/mkaradeniz"><img src="https://avatars2.githubusercontent.com/u/12477983?v=4?s=100" width="100px;" alt="Max Karadeniz"/><br /><sub><b>Max Karadeniz</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=mkaradeniz" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://medium.com/@gonchub"><img src="https://avatars3.githubusercontent.com/u/857221?v=4?s=100" width="100px;" alt="Gonzalo Beviglia"/><br /><sub><b>Gonzalo Beviglia</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3AGonchuB" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=GonchuB" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/pulls?q=is%3Apr+reviewed-by%3AGonchuB" title="Reviewed Pull Requests">👀</a></td>
    </tr>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/kilrain"><img src="https://avatars2.githubusercontent.com/u/47700687?v=4?s=100" width="100px;" alt="Brian Kilrain"/><br /><sub><b>Brian Kilrain</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Akilrain" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=kilrain" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=kilrain" title="Tests">⚠️</a> <a href="https://github.com/downshift-js/downshift/commits?author=kilrain" title="Documentation">📖</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://www.gzschaler.de"><img src="https://avatars0.githubusercontent.com/u/321265?v=4?s=100" width="100px;" alt="Gerd Zschaler"/><br /><sub><b>Gerd Zschaler</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=rincedd" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/issues?q=author%3Arincedd" title="Bug reports">🐛</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/gaskar"><img src="https://avatars1.githubusercontent.com/u/491166?v=4?s=100" width="100px;" alt="Karen Gasparyan"/><br /><sub><b>Karen Gasparyan</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=gaskar" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/kserjey"><img src="https://avatars1.githubusercontent.com/u/19753880?v=4?s=100" width="100px;" alt="Sergey Korchinskiy"/><br /><sub><b>Sergey Korchinskiy</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Akserjey" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=kserjey" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=kserjey" title="Tests">⚠️</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/edygar"><img src="https://avatars.githubusercontent.com/u/566280?v=3?s=100" width="100px;" alt="Edygar Oliveira"/><br /><sub><b>Edygar Oliveira</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=edygar" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/issues?q=author%3Aedygar" title="Bug reports">🐛</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/epeicher"><img src="https://avatars1.githubusercontent.com/u/3519124?v=4?s=100" width="100px;" alt="epeicher"/><br /><sub><b>epeicher</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Aepeicher" title="Bug reports">🐛</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://francoischalifour.com"><img src="https://avatars3.githubusercontent.com/u/6137112?v=4?s=100" width="100px;" alt="François Chalifour"/><br /><sub><b>François Chalifour</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=francoischalifour" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=francoischalifour" title="Tests">⚠️</a> <a href="#platform-francoischalifour" title="Packaging/porting to new platform">📦</a></td>
    </tr>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/maxmalov"><img src="https://avatars2.githubusercontent.com/u/284129?v=4?s=100" width="100px;" alt="Maxim Malov"/><br /><sub><b>Maxim Malov</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Amaxmalov" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=maxmalov" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://epiqueras.github.io"><img src="https://avatars2.githubusercontent.com/u/19157096?v=4?s=100" width="100px;" alt="Enrique Piqueras"/><br /><sub><b>Enrique Piqueras</b></sub></a><br /><a href="#ideas-epiqueras" title="Ideas, Planning, & Feedback">🤔</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://twitter.com/layershifter"><img src="https://avatars0.githubusercontent.com/u/14183168?v=4?s=100" width="100px;" alt="Oleksandr Fediashov"/><br /><sub><b>Oleksandr Fediashov</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=layershifter" title="Code">💻</a> <a href="#infra-layershifter" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#ideas-layershifter" title="Ideas, Planning, & Feedback">🤔</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/saitonakamura"><img src="https://avatars1.githubusercontent.com/u/1552189?v=4?s=100" width="100px;" alt="Mikhail Bashurov"/><br /><sub><b>Mikhail Bashurov</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=saitonakamura" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/issues?q=author%3Asaitonakamura" title="Bug reports">🐛</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://www.joshuagodi.com"><img src="https://avatars1.githubusercontent.com/u/870799?v=4?s=100" width="100px;" alt="Joshua Godi"/><br /><sub><b>Joshua Godi</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=jgodi" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/lukyth"><img src="https://avatars3.githubusercontent.com/u/7040242?v=4?s=100" width="100px;" alt="Kanitkorn Sujautra"/><br /><sub><b>Kanitkorn Sujautra</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Alukyth" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=lukyth" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/jorgemoya"><img src="https://avatars3.githubusercontent.com/u/196129?v=4?s=100" width="100px;" alt="Jorge Moya"/><br /><sub><b>Jorge Moya</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=jorgemoya" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/issues?q=author%3Ajorgemoya" title="Bug reports">🐛</a></td>
    </tr>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="https://kubajastrz.com"><img src="https://avatars0.githubusercontent.com/u/6443113?v=4?s=100" width="100px;" alt="Jakub Jastrzębski"/><br /><sub><b>Jakub Jastrzębski</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=KubaJastrz" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/mufasa71"><img src="https://avatars1.githubusercontent.com/u/626420?v=4?s=100" width="100px;" alt="Shukhrat Mukimov"/><br /><sub><b>Shukhrat Mukimov</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=mufasa71" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://jhonnymoreira.dev"><img src="https://avatars0.githubusercontent.com/u/2177742?v=4?s=100" width="100px;" alt="Jhonny Moreira"/><br /><sub><b>Jhonny Moreira</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=jhonnymoreira" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/stefanprobst"><img src="https://avatars0.githubusercontent.com/u/20753323?v=4?s=100" width="100px;" alt="stefanprobst"/><br /><sub><b>stefanprobst</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=stefanprobst" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=stefanprobst" title="Tests">⚠️</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/louisaspicer"><img src="https://avatars1.githubusercontent.com/u/20270031?v=4?s=100" width="100px;" alt="Louisa Spicer"/><br /><sub><b>Louisa Spicer</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=louisaspicer" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/issues?q=author%3Alouisaspicer" title="Bug reports">🐛</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://neet.love"><img src="https://avatars2.githubusercontent.com/u/19276905?v=4?s=100" width="100px;" alt="Ryō Igarashi"/><br /><sub><b>Ryō Igarashi</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Aneet" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=neet" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://ryanlue.com/"><img src="https://avatars2.githubusercontent.com/u/12194123?v=4?s=100" width="100px;" alt="Ryan Lue"/><br /><sub><b>Ryan Lue</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=rlue" title="Documentation">📖</a></td>
    </tr>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/mattleonowicz"><img src="https://avatars3.githubusercontent.com/u/9438872?v=4?s=100" width="100px;" alt="Mateusz Leonowicz"/><br /><sub><b>Mateusz Leonowicz</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=mattleonowicz" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/atomicpages"><img src="https://avatars2.githubusercontent.com/u/1824291?v=4?s=100" width="100px;" alt="Dennis Thompson"/><br /><sub><b>Dennis Thompson</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=atomicpages" title="Tests">⚠️</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://mayicodefuture.live"><img src="https://avatars1.githubusercontent.com/u/32408893?v=4?s=100" width="100px;" alt="Maksym Boytsov"/><br /><sub><b>Maksym Boytsov</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=mayicodefuture" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://dataart.com"><img src="https://avatars1.githubusercontent.com/u/5685800?v=4?s=100" width="100px;" alt="Sergey Skrynnikov"/><br /><sub><b>Sergey Skrynnikov</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=IwalkAlone" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/commits?author=IwalkAlone" title="Tests">⚠️</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://www.linkedin.com/in/vvoyer"><img src="https://avatars0.githubusercontent.com/u/123822?v=4?s=100" width="100px;" alt="Vincent Voyer"/><br /><sub><b>Vincent Voyer</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=vvo" title="Documentation">📖</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/limejoe"><img src="https://avatars2.githubusercontent.com/u/7977551?v=4?s=100" width="100px;" alt="limejoe"/><br /><sub><b>limejoe</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=limejoe" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/issues?q=author%3Alimejoe" title="Bug reports">🐛</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/k88manish"><img src="https://avatars2.githubusercontent.com/u/19614770?v=4?s=100" width="100px;" alt="Manish Kumar"/><br /><sub><b>Manish Kumar</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=k88manish" title="Code">💻</a></td>
    </tr>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/fcrezza"><img src="https://avatars2.githubusercontent.com/u/48123020?v=4?s=100" width="100px;" alt="Anang Fachreza"/><br /><sub><b>Anang Fachreza</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=fcrezza" title="Documentation">📖</a> <a href="#example-fcrezza" title="Examples">💡</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://nickdeom.com"><img src="https://avatars2.githubusercontent.com/u/56491159?v=4?s=100" width="100px;" alt="Nick Deom"/><br /><sub><b>Nick Deom</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=ndeom" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/issues?q=author%3Andeom" title="Bug reports">🐛</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/clementgarbay"><img src="https://avatars3.githubusercontent.com/u/12433625?v=4?s=100" width="100px;" alt="Clément Garbay"/><br /><sub><b>Clément Garbay</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=clementgarbay" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/KaiminHuang"><img src="https://avatars.githubusercontent.com/u/5600404?v=4?s=100" width="100px;" alt="Kaimin Huang"/><br /><sub><b>Kaimin Huang</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=KaiminHuang" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/issues?q=author%3AKaiminHuang" title="Bug reports">🐛</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://theredcircuit.com"><img src="https://avatars.githubusercontent.com/u/1242456?v=4?s=100" width="100px;" alt="David Welling"/><br /><sub><b>David Welling</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=davewelling" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/issues?q=author%3Adavewelling" title="Bug reports">🐛</a> <a href="#ideas-davewelling" title="Ideas, Planning, & Feedback">🤔</a> <a href="#research-davewelling" title="Research">🔬</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/chandrasekhar1996"><img src="https://avatars.githubusercontent.com/u/33996892?v=4?s=100" width="100px;" alt="chandrasekhar1996"/><br /><sub><b>chandrasekhar1996</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Achandrasekhar1996" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=chandrasekhar1996" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/drewbrend"><img src="https://avatars.githubusercontent.com/u/5375799?v=4?s=100" width="100px;" alt="Brendan Drew"/><br /><sub><b>Brendan Drew</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=drewbrend" title="Code">💻</a></td>
    </tr>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/jeanpan"><img src="https://avatars.githubusercontent.com/u/1307026?v=4?s=100" width="100px;" alt="Jean Pan"/><br /><sub><b>Jean Pan</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=jeanpan" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://tjenkinson.me"><img src="https://avatars.githubusercontent.com/u/3259993?v=4?s=100" width="100px;" alt="Tom Jenkinson"/><br /><sub><b>Tom Jenkinson</b></sub></a><br /><a href="#infra-tjenkinson" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/aliceHendicott"><img src="https://avatars.githubusercontent.com/u/40346716?v=4?s=100" width="100px;" alt="Alice Hendicott"/><br /><sub><b>Alice Hendicott</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=aliceHendicott" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/issues?q=author%3AaliceHendicott" title="Bug reports">🐛</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/zmdavis"><img src="https://avatars.githubusercontent.com/u/25305144?v=4?s=100" width="100px;" alt="Zach Davis"/><br /><sub><b>Zach Davis</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=zmdavis" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/issues?q=author%3Azmdavis" title="Bug reports">🐛</a></td>
    </tr>
  </tbody>
</table>

<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->

<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors][all-contributors] specification.
Contributions of any kind welcome!

## LICENSE

MIT

[npm]: https://www.npmjs.com/
[node]: https://nodejs.org
[build-badge]:
  https://img.shields.io/github/actions/workflow/status/downshift-js/downshift/validate.yml?branch=master&logo=github&style=flat-square
[build]:
  https://github.com/downshift-js/downshift/actions?query=workflow%3Avalidate+branch%3Amaster
[coverage-badge]:
  https://img.shields.io/codecov/c/github/downshift-js/downshift.svg?style=flat-square
[coverage]: https://codecov.io/github/downshift-js/downshift
[version-badge]: https://img.shields.io/npm/v/downshift.svg?style=flat-square
[package]: https://www.npmjs.com/package/downshift
[downloads-badge]: https://img.shields.io/npm/dm/downshift.svg?style=flat-square
[npmcharts]: http://npmcharts.com/compare/downshift
[license-badge]: https://img.shields.io/npm/l/downshift.svg?style=flat-square
[license]: https://github.com/downshift-js/downshift/blob/master/LICENSE
[prs-badge]:
  https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
[prs]: http://makeapullrequest.com
[chat]: https://gitter.im/downshift-js/downshift
[chat-badge]:
  https://img.shields.io/gitter/room/downshift-js/downshift.svg?style=flat-square
[coc-badge]:
  https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
[coc]: https://github.com/downshift-js/downshift/blob/master/CODE_OF_CONDUCT.md
[react-badge]:
  https://img.shields.io/badge/%E2%9A%9B%EF%B8%8F-(p)react-00d8ff.svg?style=flat-square
[react]: https://facebook.github.io/react/
[gzip-badge]:
  http://img.badgesize.io/https://unpkg.com/downshift/dist/downshift.umd.min.js?compression=gzip&label=gzip%20size&style=flat-square
[size-badge]:
  http://img.badgesize.io/https://unpkg.com/downshift/dist/downshift.umd.min.js?label=size&style=flat-square
[unpkg-dist]: https://unpkg.com/downshift/dist/
[module-formats-badge]:
  https://img.shields.io/badge/module%20formats-umd%2C%20cjs%2C%20es-green.svg?style=flat-square
[spectrum-badge]: https://withspectrum.github.io/badge/badge.svg
[spectrum]: https://spectrum.chat/downshift
[emojis]: https://github.com/kentcdodds/all-contributors#emoji-key
[all-contributors]: https://github.com/kentcdodds/all-contributors
[ryan]: https://github.com/ryanflorence
[compound-components-lecture]:
  https://courses.reacttraining.com/courses/advanced-react/lectures/3060560
[react-autocomplete]: https://www.npmjs.com/package/react-autocomplete
[jquery-complete]: https://jqueryui.com/autocomplete/
[examples]:
  https://codesandbox.io/search?refinementList%5Btags%5D%5B0%5D=downshift%3Aexample&page=1
[yt-playlist]:
  https://www.youtube.com/playlist?list=PLV5CVI1eNcJh5CTgArGVwANebCrAh2OUE
[jared]: https://github.com/jaredly
[controlled-components-lecture]:
  https://courses.reacttraining.com/courses/advanced-react/lectures/3172720
[react-training]: https://reacttraining.com/
[advanced-react]: https://courses.reacttraining.com/courses/enrolled/200086
[use-a-render-prop]: https://medium.com/@mjackson/use-a-render-prop-50de598f11ce
[semver]: http://semver.org/
[hooks-readme]: https://github.com/downshift-js/downshift/blob/master/src/hooks
[useselect-readme]:
  https://github.com/downshift-js/downshift/blob/master/src/hooks/useSelect
[combobox-readme]:
  https://github.com/downshift-js/downshift/tree/master/src/hooks/useCombobox
[tag-group-readme]:
  https://github.com/downshift-js/downshift/tree/master/src/hooks/useTagGroup
[bundle-phobia-link]: https://bundlephobia.com/result?p=downshift@3.4.8
[aria]: https://www.w3.org/TR/wai-aria-practices/
[combobox-aria-example]:
  https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-autocomplete-list.html
[select-aria-example]:
  https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-select-only.html
[docsite]: https://downshift-js.com/
[code-sandbox-try-it-out]:
  https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Fdownshift%2Fordered-examples%2F00-get-root-props-example.js&moduleview=1
[code-sandbox-no-get-root-props]:
  https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Fdownshift%2Fordered-examples%2F01-basic-autocomplete.js&moduleview=1
[migration-guide-v7]:
  https://github.com/downshift-js/downshift/tree/master/src/hooks/MIGRATION_V7.md


================================================
FILE: babel.config.js
================================================
const originalPreset = require('kcd-scripts/babel')
const customPreset = api => {
  api.cache(true)
  const evaluatedPreset = originalPreset(api)
  const plugins = [
    require.resolve('babel-plugin-dynamic-import-node'),
    ['no-side-effect-class-properties'],
    ['@babel/plugin-proposal-private-property-in-object', {loose: true}], // cypress warning because loose is false in preset-env
    ['@babel/plugin-proposal-private-methods', {loose: true}], // cypress warning because loose is false in preset-env
    ...evaluatedPreset.plugins,
  ]
  return {
    presets: evaluatedPreset.presets,
    plugins,
  }
}
module.exports = customPreset


================================================
FILE: cypress/.eslintrc
================================================
{
  "plugins": ["cypress"],
  "globals": {
    "cy": true,
    "Cypress": true,
    "before": true
  }
}


================================================
FILE: cypress/e2e/combobox.cy.js
================================================
// the combobox happens to be in the center of the page.
// without specifying an x and y for the body events
// we actually wind up firing events on the combobox.
const bodyX = 100
const bodyY = 500

describe('combobox', () => {
  before(() => {
    cy.visit('/combobox')
  })

  beforeEach(() => {
    cy.findByTestId('clear-button').click()
  })

  it('can select an item', () => {
    cy.findByTestId('combobox-input')
      .type('ee{downarrow}{enter}')
      .should('have.value', 'Green')
  })

  it('can arrow up to select last item', () => {
    cy.findByTestId('combobox-input')
      .type('{uparrow}{enter}') // open menu, last option is focused
      .should('have.value', 'Skyblue')
  })

  it('can arrow down to select first item', () => {
    cy.findByTestId('combobox-input')
      .type('{downarrow}{enter}') // open menu, first option is focused
      .should('have.value', 'Black')
  })

  it('can down arrow to select an item', () => {
    cy.findByTestId('combobox-input')
      .type('{downarrow}{downarrow}{enter}') // open and select second item
      .should('have.value', 'Red')
  })

  it('can use home arrow to select first item', () => {
    cy.findByTestId('combobox-input')
      .type('{downarrow}{downarrow}{home}{enter}') // open to first, go down to second, return to first by home.
      .should('have.value', 'Black')
  })

  it('can use end arrow to select last item', () => {
    cy.findByTestId('combobox-input')
      .type('{downarrow}{end}{enter}') // open to first, go to last by end.
      .should('have.value', 'Skyblue')
  })

  it('resets the item on blur', () => {
    cy.findByTestId('combobox-input')
      .type('{downarrow}{enter}') // open and select first item
      .should('have.value', 'Black')
      .get('body')
      .click(bodyX, bodyY, {force: true})
      .findByTestId('combobox-input')
      .should('have.value', 'Black')
  })

  it('can use the mouse to click an item', () => {
    cy.findByTestId('combobox-input').type('red')
    cy.findByTestId('downshift-item-0').click()
    cy.findByTestId('combobox-input').should('have.value', 'Red')
  })

  it('does not reset the input when mouseup outside while the input is focused', () => {
    cy.findByTestId('combobox-input').type('red')
    cy.findByTestId('downshift-item-0').click()
    cy.findByTestId('combobox-input')
      .should('have.value', 'Red')
      .type('{backspace}{backspace}')
      .should('have.value', 'R')
      .click()
      .get('body')
      .trigger('mouseup', bodyX, bodyY, {force: true})
      .findByTestId('combobox-input')
      .should('have.value', 'R')
      .blur()
      .get('body')
      .trigger('click', bodyX, bodyY, {force: true})
      .findByTestId('combobox-input')
      .should('have.value', 'Red')
  })

  it('resets when bluring the input', () => {
    cy.findByTestId('combobox-input')
      .type('re')
      .blur()
      // https://github.com/kentcdodds/cypress-testing-library/issues/13
      // eslint-disable-next-line testing-library/await-async-utils
      .wait(1)
      .findByTestId('downshift-item-0', {timeout: 10})
      .should('not.exist')
  })

  it('does not reset when tabbing from input to the toggle button', () => {
    cy.findByTestId('combobox-input').type('pu')
    cy.findByTestId('combobox-toggle-button').focus()
    cy.findByTestId('downshift-item-0').click()
    cy.findByTestId('combobox-input').should('have.value', 'Purple')
  })

  it('does not reset when tabbing from the toggle button to the input', () => {
    cy.findByTestId('combobox-toggle-button').click()
    cy.findByTestId('combobox-input').focus()
    cy.findByTestId('downshift-item-0').click()
    cy.findByTestId('combobox-input').should('have.value', 'Black')
  })

  it('resets when tapping outside on a touch screen', () => {
    cy.findByTestId('combobox-input')
      .type('re')
      .get('body')
      .trigger('touchstart', bodyX, bodyY, {force: true})
      .trigger('touchend', bodyX, bodyY, {force: true})
    cy.findByTestId('downshift-item-0', {timeout: 100}).should('not.exist')
  })

  it('does not reset when swiping outside to scroll a touch screen', () => {
    cy.findByTestId('combobox-input')
      .type('re')
      .get('body')
      .trigger('touchstart', bodyX, bodyY, {force: true})
      .trigger('touchmove', bodyX, bodyY + 20, {force: true})
      .trigger('touchend', bodyX, bodyY + 20, {force: true})
    cy.findByTestId('downshift-item-0', {timeout: 10}).should('be.visible')
  })
})


================================================
FILE: cypress/e2e/useCombobox.cy.js
================================================
describe('useCombobox', () => {
  before(() => {
    cy.visit('/useCombobox')
  })

  it('should keep focus on the input when selecting by click', () => {
    cy.findByTestId('combobox-toggle-button').click()
    cy.findByTestId('downshift-item-0').click()
    cy.findByTestId('combobox-input').should('have.focus')
  })
})


================================================
FILE: cypress/e2e/useMultipleCombobox.cy.js
================================================
describe('useMultipleCombobox', () => {
  before(() => {
    cy.visit('/useMultipleCombobox')
  })

  it('can select multiple items', () => {
    cy.findByRole('button', {name: 'toggle menu'}).click()
    cy.findByRole('option', {name: 'Green'}).click()
    cy.findByRole('option', {name: 'Gray'}).click()
    cy.findByRole('button', {name: 'toggle menu'}).click()
    cy.findByText('Black').should('be.visible')
    cy.findByText('Red').should('be.visible')
    cy.findByText('Green').should('be.visible')
    cy.findByText('Gray').should('be.visible')
  })
})


================================================
FILE: cypress/e2e/useMultipleSelect.cy.js
================================================
describe('useMultipleSelect', () => {
  before(() => {
    cy.visit('/useMultipleSelect')
  })

  it('can select multiple options', () => {
    cy.findByRole('combobox').click()
    cy.findByRole('option', {name: 'Green'}).click()
    cy.findByRole('option', {name: 'Blue'}).click()
    cy.findByRole('combobox').click()
    cy.findByText('Black').should('be.visible')
    cy.findByText('Red').should('be.visible')
    cy.findByText('Green').should('be.visible')
    cy.findByText('Blue').should('be.visible')
  })
})


================================================
FILE: cypress/e2e/useSelect.cy.js
================================================
describe('useSelect', () => {
  before(() => {
    cy.visit('/useSelect')
  })

  it('can open and close a menu', () => {
    cy.findByRole('combobox')
      .click()
    cy.findAllByRole('option')
      .should('have.length.above', 0)
    cy.findByRole('combobox')
      .click()
    cy.findAllByRole('option')
      .should('have.length', 0)
    cy.findByRole('combobox')
      .click()
    cy.findAllByRole('option')
      .should('have.length.above', 0)
  })
})


================================================
FILE: cypress/e2e/useTagGroup.cy.js
================================================
describe('useTagGroup', () => {
  const colors = ['Black', 'Red', 'Green', 'Blue', 'Orange']

  beforeEach(() => {
    cy.visit('/useTagGroup')

    // Ensure the listbox exists
    cy.findByRole('listbox', {name: /colors example/i}).should('exist')

    // Ensure it has 5 color tags
    cy.findAllByRole('option').should('have.length', 5)
  })

  it('clicks a tag and navigates with circular arrow keys', () => {
    // Click first tag ("Black")
    cy.findByRole('option', {name: /Black/i}).click().should('have.focus')

    // Arrow Right navigation through all tags
    for (let index = 0; index < colors.length; index++) {
      const nextIndex = (index + 1) % colors.length
      cy.focused().trigger('keydown', {key: 'ArrowRight'})
      cy.findByRole('option', {name: colors[nextIndex]}).should('have.focus')
    }

    // Arrow Left navigation through all tags (circular)
    for (let index = colors.length - 1; index >= 0; index--) {
      const prevIndex = (index + colors.length) % colors.length
      cy.focused().trigger('keydown', {key: 'ArrowLeft'})
      cy.findByRole('option', {name: colors[prevIndex]}).should('have.focus')
    }

    // Circular on the left.
    cy.focused().trigger('keydown', {key: 'ArrowLeft'})
    cy.findByRole('option', {name: colors[colors.length - 1]}).should(
      'have.focus',
    )
  })

  it('deletes a tag using Delete and Backspace', () => {
    // Focus "Red"
    cy.findByRole('option', {name: /Red/i}).click()

    // Delete key
    cy.focused().trigger('keydown', {key: 'Delete'})
    cy.findAllByRole('option').should('have.length', 4)

    // Next tag should be "Green"
    cy.focused().should('contain.text', 'Green')

    // Backspace key removes "Green"
    cy.focused().trigger('keydown', {key: 'Backspace'})
    cy.findAllByRole('option').should('have.length', 3)

    // Focus should now be on "Blue"
    cy.focused().should('contain.text', 'Blue')
  })

  it('removes a tag via remove button', () => {
    // Remove "Blue" via its remove button
    cy.findByRole('option', {name: /Blue/i}).within(() => {
      cy.findByRole('button', {name: /remove/i}).click()
    })

    // Verify 4 tags remain
    cy.findAllByRole('option').should('have.length', 4)

    // Orange tag should have focus.
    cy.findByRole('option', {name: /Orange/i}).should('have.focus')
  })

  it('adds a tag from the list', () => {
    // Focus "Red"
    cy.findByRole('option', {name: /Red/i}).click()

    // Clicks the Lime option from the add tags list.
    cy.findByRole('button', {name: /Lime/i}).click()

    // Verify 6 tags are visible
    cy.findAllByRole('option').should('have.length', 6)

    cy.findByRole('option', {name: /Lime/i}).should('be.visible')
    // Including the new option
  })
})


================================================
FILE: cypress/fixtures/example.json
================================================
{}


================================================
FILE: cypress/plugins/index.js
================================================
module.exports = (_on, _config) => {
  // `on` is used to hook into various events Cypress emits
  // `config` is the resolved Cypress config
}


================================================
FILE: cypress/support/e2e.js
================================================
// eslint-disable-next-line
import '@testing-library/cypress/add-commands'


================================================
FILE: cypress.config.js
================================================
const webpackPreprocessor = require('@cypress/webpack-preprocessor')
const {defineConfig} = require('cypress')

module.exports = defineConfig({
  e2e: {
    baseUrl: 'http://localhost:6006',
    video: false,
    testIsolation: false,
    setupNodeEvents(on) {
      on(
        'file:preprocessor',
        webpackPreprocessor({
          webpackOptions: {
            ...webpackPreprocessor.defaultOptions.webpackOptions,
            target: 'web',
          },
        }),
      )
    },
  },
})


================================================
FILE: docusaurus/pages/combobox.js
================================================
import * as React from 'react'

import Downshift from '../../src'
import {colors, containerStyles, menuStyles} from '../utils'

export default function ComboBox() {
  return (
    <Downshift>
      {({
        getInputProps,
        getItemProps,
        getMenuProps,
        getLabelProps,
        getToggleButtonProps,
        highlightedIndex,
        inputValue,
        isOpen,
        selectedItem,
        getRootProps,
        clearSelection,
      }) => (
        <div style={containerStyles}>
          <label
            style={{
              fontWeight: 'bolder',
              color: selectedItem ? selectedItem : 'black',
            }}
            {...getLabelProps()}
          >
            Choose an element:
          </label>
          <div {...getRootProps({}, {suppressRefError: true})}>
            <input
              style={{padding: '4px'}}
              {...getInputProps()}
              data-testid="combobox-input"
            />
            <button
              style={{padding: '4px 8px'}}
              aria-label="toggle menu"
              data-testid="combobox-toggle-button"
              {...getToggleButtonProps()}
            >
              {isOpen ? <>&#8593;</> : <>&#8595;</>}
            </button>
            <button
              style={{padding: '4px 8px'}}
              aria-label="toggle menu"
              data-testid="clear-button"
              onClick={clearSelection}
            >
              &#10007;
            </button>
          </div>
          <ul {...getMenuProps()} style={menuStyles}>
            {isOpen
              ? (inputValue
                  ? colors.filter(i =>
                      i.toLowerCase().includes(inputValue.toLowerCase()),
                    )
                  : colors
                ).map((item, index) => (
                  <li
                    style={{
                      padding: '4px',
                      backgroundColor:
                        highlightedIndex === index ? '#bde4ff' : null,
                    }}
                    key={`${item}${index}`}
                    {...getItemProps({
                      item,
                      index,
                      'data-testid': `downshift-item-${index}`,
                    })}
                  >
                    {item}
                  </li>
                ))
              : null}
          </ul>
        </div>
      )}
    </Downshift>
  )
}


================================================
FILE: docusaurus/pages/index.js
================================================
import * as React from 'react'

export default function Docs() {
  return (
    <div style={{width: '50%', margin: '200px auto'}}>
      Downshift Docs for E2E Testing
      <ul>
        <li>
          <a href="./useCombobox">useCombobox</a>
        </li>
        <li>
          <a href="./useSelect">useSelect</a>
        </li>
        <li>
          <a href="./useMultipleCombobox">useMultipleCombobox</a>
        </li>
        <li>
          <a href="./useMultipleSelect">useMultipleSelect</a>
        </li>
        <li>
          <a href="./combobox">Downshift</a>
        </li>
        <li>
          <a href="./useTagGroup">useTagGroup</a>
        </li>
        <li>
          <a href="./useTagGroupCombobox">useTagGroupCombobox</a>
        </li>
      </ul>
    </div>
  )
}


================================================
FILE: docusaurus/pages/useCombobox.js
================================================
import * as React from 'react'

import {useCombobox} from '../../src'
import {colors, containerStyles, menuStyles} from '../utils'

export default function DropdownCombobox() {
  const [inputItems, setInputItems] = React.useState(colors)
  const {
    isOpen,
    getToggleButtonProps,
    getLabelProps,
    getMenuProps,
    getInputProps,
    highlightedIndex,
    getItemProps,
    selectedItem,
    selectItem,
  } = useCombobox({
    items: inputItems,
    onInputValueChange: ({inputValue}) => {
      setInputItems(
        colors.filter(item =>
          item.toLowerCase().startsWith(inputValue.toLowerCase()),
        ),
      )
    },
  })
  return (
    <div style={containerStyles}>
      <label
        style={{
          fontWeight: 'bolder',
          color: selectedItem ? selectedItem : 'black',
        }}
        {...getLabelProps()}
      >
        Choose an element:
      </label>
      <div>
        <input
          style={{padding: '4px'}}
          {...getInputProps()}
          data-testid="combobox-input"
        />
        <button
          style={{padding: '4px 8px'}}
          aria-label="toggle menu"
          data-testid="combobox-toggle-button"
          {...getToggleButtonProps()}
        >
          {isOpen ? <>&#8593;</> : <>&#8595;</>}
        </button>
        <button
          style={{padding: '4px 8px'}}
          aria-label="toggle menu"
          data-testid="clear-button"
          onClick={() => selectItem(null)}
        >
          &#10007;
        </button>
      </div>
      <ul {...getMenuProps()} style={menuStyles}>
        {isOpen ?
          inputItems.map((item, index) => (
            <li
              style={{
                padding: '4px',
                backgroundColor: highlightedIndex === index ? '#bde4ff' : null,
              }}
              key={`${item}${index}`}
              {...getItemProps({
                item,
                index,
                'data-testid': `downshift-item-${index}`,
              })}
            >
              {item}
            </li>
          )) : null}
      </ul>
    </div>
  )
}


================================================
FILE: docusaurus/pages/useMultipleCombobox.js
================================================
import * as React from 'react'

import {useCombobox, useMultipleSelection} from '../../src'
import {
  colors,
  containerStyles,
  menuStyles,
  tagGroupSyles,
  tagStyles,
} from '../utils'

const initialSelectedItems = [colors[0], colors[1]]

function getFilteredItems(selectedItems, inputValue) {
  const lowerCasedInputValue = inputValue.toLowerCase()

  return colors.filter(
    colour =>
      !selectedItems.includes(colour) &&
      colour.toLowerCase().startsWith(lowerCasedInputValue),
  )
}

export default function DropdownMultipleCombobox() {
  const [inputValue, setInputValue] = React.useState('')
  const [selectedItems, setSelectedItems] = React.useState(initialSelectedItems)
  const items = React.useMemo(
    () => getFilteredItems(selectedItems, inputValue),
    [selectedItems, inputValue],
  )

  const {getSelectedItemProps, getDropdownProps, removeSelectedItem} =
    useMultipleSelection({
      selectedItems,
      onStateChange({selectedItems: newSelectedItems, type}) {
        switch (type) {
          case useMultipleSelection.stateChangeTypes
            .SelectedItemKeyDownBackspace:
          case useMultipleSelection.stateChangeTypes.SelectedItemKeyDownDelete:
          case useMultipleSelection.stateChangeTypes.DropdownKeyDownBackspace:
          case useMultipleSelection.stateChangeTypes.FunctionRemoveSelectedItem:
            setSelectedItems(newSelectedItems)
            break
          default:
            break
        }
      },
    })
  const {
    isOpen,
    getToggleButtonProps,
    getLabelProps,
    getMenuProps,
    getInputProps,
    highlightedIndex,
    getItemProps,
    selectedItem,
    clearSelection,
  } = useCombobox({
    items,
    inputValue,
    selectedItem: null,
    stateReducer(state, actionAndChanges) {
      const {changes, type} = actionAndChanges

      switch (type) {
        case useCombobox.stateChangeTypes.InputKeyDownEnter:
        case useCombobox.stateChangeTypes.ItemClick:
        case useCombobox.stateChangeTypes.InputBlur:
          return {
            ...changes,
            ...(changes.selectedItem && {isOpen: true, highlightedIndex: 0}),
          }
        default:
          return changes
      }
    },
    onStateChange({
      inputValue: newInputValue,
      type,
      selectedItem: newSelectedItem,
    }) {
      switch (type) {
        case useCombobox.stateChangeTypes.InputKeyDownEnter:
        case useCombobox.stateChangeTypes.ItemClick:
          setSelectedItems([...selectedItems, newSelectedItem])

          break
        case useCombobox.stateChangeTypes.InputChange:
          setInputValue(newInputValue)
          break
        default:
          break
      }
    },
  })
  return (
    <div style={containerStyles}>
      <label
        style={{
          fontWeight: 'bolder',
          color: selectedItem ? selectedItem : 'black',
        }}
        {...getLabelProps()}
      >
        Choose an element:
      </label>
      <div style={tagGroupSyles}>
        {selectedItems.map(function renderSelectedItem(
          selectedItemForRender,
          index,
        ) {
          return (
            <span
              style={tagStyles}
              key={`selected-item-${index}`}
              {...getSelectedItemProps({
                selectedItem: selectedItemForRender,
                index,
              })}
            >
              {selectedItemForRender}
              {/* eslint-disable-next-line jsx-a11y/click-events-have-key-events */}
              <span
                style={{padding: '4px', cursor: 'pointer'}}
                onClick={e => {
                  e.stopPropagation()
                  removeSelectedItem(selectedItemForRender)
                }}
              >
                &#10005;
              </span>
            </span>
          )
        })}
        <div>
          <input
            style={{padding: '4px'}}
            {...getInputProps(getDropdownProps({preventKeyAction: isOpen}))}
            data-testid="combobox-input"
          />
          <button
            style={{padding: '4px 8px'}}
            aria-label="toggle menu"
            data-testid="combobox-toggle-button"
            {...getToggleButtonProps()}
          >
            {isOpen ? <>&#8593;</> : <>&#8595;</>}
          </button>
          <button
            style={{padding: '4px 8px'}}
            aria-label="clear selection"
            data-testid="clear-button"
            onClick={clearSelection}
          >
            &#10007;
          </button>
        </div>
      </div>
      <ul {...getMenuProps()} style={menuStyles}>
        {isOpen
          ? items.map((item, index) => (
              <li
                style={{
                  padding: '4px',
                  backgroundColor:
                    highlightedIndex === index ? '#bde4ff' : null,
                }}
                key={`${item}${index}`}
                {...getItemProps({
                  item,
                  index,
                  'data-testid': `downshift-item-${index}`,
                })}
              >
                {item}
              </li>
            ))
          : null}
      </ul>
    </div>
  )
}


================================================
FILE: docusaurus/pages/useMultipleSelect.js
================================================
import * as React from 'react'

import {useSelect, useMultipleSelection} from '../../src'
import {
  colors,
  containerStyles,
  menuStyles,
  tagGroupSyles,
  tagStyles,
} from '../utils'

const initialSelectedItems = [colors[0], colors[1]]

function getFilteredItems(selectedItems) {
  return colors.filter(colour => !selectedItems.includes(colour))
}

export default function DropdownMultipleSelect() {
  const {
    getSelectedItemProps,
    getDropdownProps,
    addSelectedItem,
    removeSelectedItem,
    selectedItems,
  } = useMultipleSelection({initialSelectedItems})
  const items = getFilteredItems(selectedItems)
  const {
    isOpen,
    selectedItem,
    getToggleButtonProps,
    getLabelProps,
    getMenuProps,
    highlightedIndex,
    getItemProps,
  } = useSelect({
    selectedItem: null,
    defaultHighlightedIndex: 0, // after selection, highlight the first item.
    items,
    stateReducer: (state, actionAndChanges) => {
      const {changes, type} = actionAndChanges
      switch (type) {
        case useSelect.stateChangeTypes.ToggleButtonKeyDownEnter:
        case useSelect.stateChangeTypes.ToggleButtonKeyDownSpaceButton:
        case useSelect.stateChangeTypes.ItemClick:
          return {
            ...changes,
            isOpen: true, // keep the menu open after selection.
          }
        default:
          return changes
      }
    },
    onStateChange: ({type, selectedItem: newSelectedItem}) => {
      switch (type) {
        case useSelect.stateChangeTypes.ToggleButtonKeyDownEnter:
        case useSelect.stateChangeTypes.ToggleButtonKeyDownSpaceButton:
        case useSelect.stateChangeTypes.ItemClick:
          if (newSelectedItem) {
            addSelectedItem(newSelectedItem)
          }
          break
        default:
          break
      }
    },
  })

  return (
    <div style={containerStyles}>
      <label
        style={{
          fontWeight: 'bolder',
          color: selectedItem ? selectedItem : 'black',
        }}
        {...getLabelProps()}
      >
        Choose an element:
      </label>
      <div style={tagGroupSyles}>
        {selectedItems.map(function renderSelectedItem(
          selectedItemForRender,
          index,
        ) {
          return (
            <span
              style={tagStyles}
              key={`selected-item-${index}`}
              {...getSelectedItemProps({
                selectedItem: selectedItemForRender,
                index,
              })}
            >
              {selectedItemForRender}
              {/* eslint-disable-next-line jsx-a11y/click-events-have-key-events */}
              <span
                style={{padding: '4px', cursor: 'pointer'}}
                onClick={e => {
                  e.stopPropagation()
                  removeSelectedItem(selectedItemForRender)
                }}
              >
                &#10005;
              </span>
            </span>
          )
        })}
        <div
          style={{
            padding: '4px',
            textAlign: 'center',
            border: '1px solid black',
            backgroundColor: 'lightgray',
            cursor: 'pointer',
          }}
          type="button"
          {...getToggleButtonProps(
            getDropdownProps({preventKeyAction: isOpen}),
          )}
        >
          Pick some colors {isOpen ? <>&#8593;</> : <>&#8595;</>}
        </div>
      </div>
      <ul {...getMenuProps()} style={menuStyles}>
        {isOpen
          ? items.map((item, index) => (
              <li
                style={{
                  padding: '4px',
                  backgroundColor:
                    highlightedIndex === index ? '#bde4ff' : null,
                }}
                key={`${item}${index}`}
                {...getItemProps({
                  item,
                  index,
                  'data-testid': `downshift-item-${index}`,
                })}
              >
                {item}
              </li>
            ))
          : null}
      </ul>
    </div>
  )
}


================================================
FILE: docusaurus/pages/useSelect.js
================================================
import * as React 
Download .txt
gitextract_fp6r61rc/

├── .all-contributorsrc
├── .flowconfig
├── .gitattributes
├── .github/
│   ├── ISSUE_TEMPLATE.md
│   ├── PULL_REQUEST_TEMPLATE.md
│   └── workflows/
│       └── validate.yml
├── .gitignore
├── .npmrc
├── .nvmrc
├── .prettierignore
├── CHANGELOG.md
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── babel.config.js
├── cypress/
│   ├── .eslintrc
│   ├── e2e/
│   │   ├── combobox.cy.js
│   │   ├── useCombobox.cy.js
│   │   ├── useMultipleCombobox.cy.js
│   │   ├── useMultipleSelect.cy.js
│   │   ├── useSelect.cy.js
│   │   └── useTagGroup.cy.js
│   ├── fixtures/
│   │   └── example.json
│   ├── plugins/
│   │   └── index.js
│   └── support/
│       └── e2e.js
├── cypress.config.js
├── docusaurus/
│   ├── pages/
│   │   ├── combobox.js
│   │   ├── index.js
│   │   ├── useCombobox.js
│   │   ├── useMultipleCombobox.js
│   │   ├── useMultipleSelect.js
│   │   ├── useSelect.js
│   │   ├── useTagGroup.css
│   │   ├── useTagGroup.tsx
│   │   ├── useTagGroupCombobox.css
│   │   └── useTagGroupCombobox.tsx
│   ├── plugins/
│   │   └── webpack5polyfills.js
│   ├── tsconfig.json
│   └── utils.ts
├── docusaurus.config.js
├── flow-typed/
│   └── npm/
│       └── downshift_v2.x.x.js.flow
├── jest.config.js
├── netlify.toml
├── other/
│   ├── MAINTAINING.md
│   ├── TYPESCRIPT_USAGE.md
│   ├── USERS.md
│   ├── manual-releases.md
│   ├── misc-tests/
│   │   ├── __tests__/
│   │   │   ├── build.js
│   │   │   └── preact.js
│   │   └── jest.config.js
│   ├── react-native/
│   │   ├── .babelrc
│   │   ├── __tests__/
│   │   │   ├── __snapshots__/
│   │   │   │   └── render-tests.js.snap
│   │   │   ├── onBlur-tests.js
│   │   │   ├── onChange-tests.js
│   │   │   └── render-tests.js
│   │   └── jest.config.js
│   └── ssr/
│       ├── __tests__/
│       │   └── index.js
│       └── jest.config.js
├── package.json
├── prettier.config.js
├── rollup.config.js
├── src/
│   ├── __mocks__/
│   │   ├── set-a11y-status.js
│   │   └── utils.js
│   ├── __tests__/
│   │   ├── .eslintrc
│   │   ├── __snapshots__/
│   │   │   ├── downshift.aria.js.snap
│   │   │   ├── downshift.get-item-props.js.snap
│   │   │   ├── downshift.get-menu-props.js.snap
│   │   │   ├── downshift.get-root-props.js.snap
│   │   │   ├── downshift.misc.js.snap
│   │   │   └── set-a11y-status.js.snap
│   │   ├── downshift.aria.js
│   │   ├── downshift.focus-restoration.js
│   │   ├── downshift.get-button-props.js
│   │   ├── downshift.get-input-props.js
│   │   ├── downshift.get-item-props.js
│   │   ├── downshift.get-label-props.js
│   │   ├── downshift.get-menu-props.js
│   │   ├── downshift.get-root-props.js
│   │   ├── downshift.lifecycle.js
│   │   ├── downshift.misc-with-utils-mocked.js
│   │   ├── downshift.misc.js
│   │   ├── downshift.props.js
│   │   ├── portal-support.js
│   │   ├── set-a11y-status.js
│   │   ├── utils.call-all-event-handlers.js
│   │   ├── utils.get-a11y-status-message.js
│   │   ├── utils.get-highlighted-index.js
│   │   ├── utils.handle-refs.js
│   │   ├── utils.pick-state.js
│   │   ├── utils.reset-id-counter.js
│   │   ├── utils.reset-id-counter.r18.js
│   │   └── utils.scroll-into-view.js
│   ├── downshift.js
│   ├── hooks/
│   │   ├── MIGRATION_V7.md
│   │   ├── MIGRATION_V8.md
│   │   ├── MIGRATION_V9.md
│   │   ├── README.md
│   │   ├── __tests__/
│   │   │   ├── __snapshots__/
│   │   │   │   └── utils.test.js.snap
│   │   │   └── utils.test.js
│   │   ├── index.ts
│   │   ├── reducer.js
│   │   ├── testUtils.js
│   │   ├── useCombobox/
│   │   │   ├── README.md
│   │   │   ├── __tests__/
│   │   │   │   ├── __snapshots__/
│   │   │   │   │   └── getInputProps.test.js.snap
│   │   │   │   ├── getInputProps.test.js
│   │   │   │   ├── getItemProps.test.js
│   │   │   │   ├── getLabelProps.test.js
│   │   │   │   ├── getMenuProps.test.js
│   │   │   │   ├── getToggleButtonProps.test.js
│   │   │   │   ├── memo.test.js
│   │   │   │   ├── props.test.js
│   │   │   │   ├── returnProps.test.js
│   │   │   │   └── utils.test.js
│   │   │   ├── index.js
│   │   │   ├── reducer.js
│   │   │   ├── stateChangeTypes.js
│   │   │   ├── testUtils.js
│   │   │   └── utils.js
│   │   ├── useMultipleSelection/
│   │   │   ├── MIGRATION_GUIDE.md
│   │   │   ├── README.md
│   │   │   ├── __tests__/
│   │   │   │   ├── getDropdownProps.test.js
│   │   │   │   ├── getSelectedItemProps.test.js
│   │   │   │   ├── memo.test.js
│   │   │   │   ├── props.test.js
│   │   │   │   ├── returnProps.test.js
│   │   │   │   └── utils.test.js
│   │   │   ├── index.js
│   │   │   ├── reducer.js
│   │   │   ├── stateChangeTypes.js
│   │   │   ├── testUtils.js
│   │   │   └── utils.js
│   │   ├── useSelect/
│   │   │   ├── README.md
│   │   │   ├── __tests__/
│   │   │   │   ├── __snapshots__/
│   │   │   │   │   └── getToggleButtonProps.test.js.snap
│   │   │   │   ├── getItemProps.test.js
│   │   │   │   ├── getLabelProps.test.js
│   │   │   │   ├── getMenuProps.test.js
│   │   │   │   ├── getToggleButtonProps.test.js
│   │   │   │   ├── memo.test.js
│   │   │   │   ├── props.test.js
│   │   │   │   ├── returnProps.test.js
│   │   │   │   └── utils.test.ts
│   │   │   ├── index.js
│   │   │   ├── reducer.js
│   │   │   ├── stateChangeTypes.js
│   │   │   ├── testUtils.js
│   │   │   └── utils/
│   │   │       ├── defaultProps.ts
│   │   │       ├── getItemIndexByCharacterKey.ts
│   │   │       ├── index.ts
│   │   │       └── propTypes.ts
│   │   ├── useTagGroup/
│   │   │   ├── README.md
│   │   │   ├── __tests__/
│   │   │   │   ├── getTagGroupProps.test.ts
│   │   │   │   ├── getTagProps.test.ts
│   │   │   │   ├── getTagRemoveProps.test.ts
│   │   │   │   ├── props.test.ts
│   │   │   │   ├── reducer.test.ts
│   │   │   │   ├── returnProps.test.ts
│   │   │   │   └── utils/
│   │   │   │       ├── defaultIds.ts
│   │   │   │       ├── defaultProps.ts
│   │   │   │       ├── index.ts
│   │   │   │       ├── renderTagGroup.tsx
│   │   │   │       └── renderUseTagGroup.ts
│   │   │   ├── index.ts
│   │   │   ├── index.types.ts
│   │   │   ├── reducer.ts
│   │   │   ├── stateChangeTypes.ts
│   │   │   └── utils/
│   │   │       ├── __tests__/
│   │   │       │   ├── useAccessibleDescription.test.ts
│   │   │       │   ├── useElementIds.legacy.test.ts
│   │   │       │   └── useElementIds.r18.test.ts
│   │   │       ├── getInitialState.ts
│   │   │       ├── getMergedProps.ts
│   │   │       ├── index.ts
│   │   │       ├── isStateEqual.ts
│   │   │       ├── useAccessibleDescription.ts
│   │   │       ├── useElementIds.ts
│   │   │       └── useRovingTagFocus.ts
│   │   ├── utils-ts/
│   │   │   ├── __tests__/
│   │   │   │   └── getItemAndIndex.test.ts
│   │   │   ├── callOnChangeProps.ts
│   │   │   ├── capitalizeString.ts
│   │   │   ├── getDefaultValue.ts
│   │   │   ├── getInitialValue.ts
│   │   │   ├── getItemAndIndex.ts
│   │   │   ├── index.ts
│   │   │   ├── propTypes.ts
│   │   │   ├── stateReducer.ts
│   │   │   ├── useA11yMessageStatus.ts
│   │   │   ├── useControlledReducer.ts
│   │   │   ├── useEnhancedReducer.ts
│   │   │   └── useIsInitialMount.ts
│   │   ├── utils.dropdown/
│   │   │   ├── __tests__/
│   │   │   │   ├── useElementIds.legacy.test.ts
│   │   │   │   └── useElementIds.r18.test.ts
│   │   │   ├── defaultProps.ts
│   │   │   ├── defaultStateValues.ts
│   │   │   ├── index.ts
│   │   │   ├── propTypes.ts
│   │   │   └── useElementIds.ts
│   │   └── utils.js
│   ├── index.ts
│   ├── is.macro.d.ts
│   ├── is.macro.js
│   ├── productionEnum.macro.d.ts
│   ├── productionEnum.macro.js
│   ├── stateChangeTypes.js
│   ├── utils-ts/
│   │   ├── __tests__/
│   │   │   ├── getState.test.ts
│   │   │   └── handleRefs.test.ts
│   │   ├── callAllEventHandlers.ts
│   │   ├── debounce.ts
│   │   ├── generateId.ts
│   │   ├── getState.ts
│   │   ├── handleRefs.ts
│   │   ├── index.ts
│   │   ├── noop.ts
│   │   ├── scrollIntoView.ts
│   │   ├── setA11yStatus.ts
│   │   ├── useLatestRef.ts
│   │   └── validatePropTypes.ts
│   └── utils.js
├── test/
│   ├── basic.test.js
│   ├── basic.test.tsx
│   ├── custom.test.js
│   ├── custom.test.tsx
│   ├── downshift.test.tsx
│   ├── setup.ts
│   ├── tsconfig.json
│   ├── useCombobox.test.tsx
│   ├── useMultipleSelect.test.tsx
│   └── useSelect.test.tsx
├── tsconfig.json
├── tsconfig.preact.json
└── typings/
    ├── index.d.ts
    └── index.legacy.d.ts
Download .txt
SYMBOL INDEX (385 symbols across 101 files)

FILE: cypress.config.js
  method setupNodeEvents (line 9) | setupNodeEvents(on) {

FILE: docusaurus.config.js
  method configureWebpack (line 43) | configureWebpack(webpackConfig, isServer) {

FILE: docusaurus/pages/combobox.js
  function ComboBox (line 6) | function ComboBox() {

FILE: docusaurus/pages/index.js
  function Docs (line 3) | function Docs() {

FILE: docusaurus/pages/useCombobox.js
  function DropdownCombobox (line 6) | function DropdownCombobox() {

FILE: docusaurus/pages/useMultipleCombobox.js
  function getFilteredItems (line 14) | function getFilteredItems(selectedItems, inputValue) {
  function DropdownMultipleCombobox (line 24) | function DropdownMultipleCombobox() {

FILE: docusaurus/pages/useMultipleSelect.js
  function getFilteredItems (line 14) | function getFilteredItems(selectedItems) {
  function DropdownMultipleSelect (line 18) | function DropdownMultipleSelect() {

FILE: docusaurus/pages/useSelect.js
  function DropdownSelect (line 6) | function DropdownSelect() {

FILE: docusaurus/pages/useTagGroup.tsx
  function TagGroup (line 8) | function TagGroup() {

FILE: docusaurus/pages/useTagGroupCombobox.tsx
  function TagGroup (line 9) | function TagGroup() {

FILE: docusaurus/plugins/webpack5polyfills.js
  method configureWebpack (line 7) | configureWebpack() {

FILE: other/misc-tests/__tests__/build.js
  function isDownshiftComponent (line 242) | function isDownshiftComponent(thing) {

FILE: other/misc-tests/__tests__/preact.js
  method children (line 68) | children({getInputProps}) {
  function setup (line 97) | function setup({children = () => <div />, ...props} = {}) {

FILE: src/__tests__/downshift.aria.js
  function renderDownshift (line 45) | function renderDownshift({renderFn, props, menuProps, inputProps} = {}) {

FILE: src/__tests__/downshift.focus-restoration.js
  function renderDownshift (line 27) | function renderDownshift(items) {

FILE: src/__tests__/downshift.get-button-props.js
  function setup (line 125) | function setup({

FILE: src/__tests__/downshift.get-input-props.js
  function setupDownshiftWithState (line 722) | function setupDownshiftWithState() {
  function setup (line 741) | function setup({items = colors} = {}) {
  function renderDownshift (line 773) | function renderDownshift({items, props} = {}) {
  function setupWithDownshiftController (line 801) | function setupWithDownshiftController() {

FILE: src/__tests__/downshift.get-item-props.js
  function renderDownshift (line 340) | function renderDownshift({
  function setupWithDownshiftController (line 390) | function setupWithDownshiftController() {

FILE: src/__tests__/downshift.get-label-props.js
  function renderDownshift (line 22) | function renderDownshift({props} = {}) {
  function BasicDownshift (line 31) | function BasicDownshift({

FILE: src/__tests__/downshift.lifecycle.js
  function mouseDownAndUp (line 257) | function mouseDownAndUp(node) {
  function setup (line 262) | function setup({render: renderFn = () => <div />, ...props} = {}) {

FILE: src/__tests__/downshift.misc-with-utils-mocked.js
  class HighlightedIndexController (line 15) | class HighlightedIndexController extends React.Component {
    method render (line 23) | render() {

FILE: src/__tests__/downshift.misc.js
  function setup (line 234) | function setup({children = () => <div />, ...props} = {}) {

FILE: src/__tests__/downshift.props.js
  function mouseDownAndUp (line 218) | function mouseDownAndUp(node) {
  function setup (line 223) | function setup({render: renderFn = () => <div />, ...props} = {}) {

FILE: src/__tests__/portal-support.js
  class MyMenu (line 7) | class MyMenu extends React.Component {
    method componentDidMount (line 9) | componentDidMount() {
    method componentWillUnmount (line 12) | componentWillUnmount() {
    method render (line 15) | render() {
  function MyPortalAutocomplete (line 32) | function MyPortalAutocomplete() {

FILE: src/__tests__/set-a11y-status.js
  function setup (line 80) | function setup() {

FILE: src/__tests__/utils.get-highlighted-index.js
  function isItemDisabled (line 7) | function isItemDisabled() {
  function isItemDisabled (line 18) | function isItemDisabled() {
  function isItemDisabled (line 29) | function isItemDisabled() {
  function isItemDisabled (line 40) | function isItemDisabled() {
  function isItemDisabled (line 54) | function isItemDisabled() {
  function isItemDisabled (line 68) | function isItemDisabled() {
  function isItemDisabled (line 82) | function isItemDisabled() {
  function isItemDisabled (line 96) | function isItemDisabled(_item, index) {
  function isItemDisabled (line 107) | function isItemDisabled(_item, index) {
  function isItemDisabled (line 118) | function isItemDisabled(_item, index) {
  function isItemDisabled (line 132) | function isItemDisabled(_item, index) {
  function isItemDisabled (line 146) | function isItemDisabled(_item, index) {
  function isItemDisabled (line 160) | function isItemDisabled(_item, index) {
  function isItemDisabled (line 174) | function isItemDisabled(_item, index) {
  function isItemDisabled (line 188) | function isItemDisabled(_item, index) {
  function isItemDisabled (line 202) | function isItemDisabled() {
  function isItemDisabled (line 216) | function isItemDisabled() {

FILE: src/__tests__/utils.reset-id-counter.js
  function setup (line 55) | function setup({renderDownshift = () => <div />, ...props} = {}) {

FILE: src/__tests__/utils.reset-id-counter.r18.js
  function setup (line 39) | function setup({renderDownshift = () => <div />, ...props} = {}) {

FILE: src/__tests__/utils.scroll-into-view.js
  function getScrollableNode (line 74) | function getScrollableNode(overrides = {}) {
  function getNode (line 84) | function getNode({

FILE: src/downshift.js
  class Downshift (line 29) | class Downshift extends Component {
    method constructor (line 116) | constructor(props) {
    method internalClearTimeouts (line 177) | internalClearTimeouts() {
    method getState (line 194) | getState(stateToMerge = this.state) {
    method getItemCount (line 198) | getItemCount() {
    method getItemNodeFromIndex (line 220) | getItemNodeFromIndex(index) {
    method scrollHighlightedItemIntoView (line 240) | scrollHighlightedItemIntoView() {
    method moveHighlightedIndex (line 248) | moveHighlightedIndex(amount, otherStateToSet) {
    method getStateAndHelpers (line 423) | getStateAndHelpers() {
    method ArrowDown (line 514) | ArrowDown(event) {
    method ArrowUp (line 549) | ArrowUp(event) {
    method Enter (line 584) | Enter(event) {
    method Escape (line 603) | Escape(event) {
    method ' ' (line 617) | ' '(event) {
    method Home (line 625) | Home(event) {
    method End (line 653) | End(event) {
    method componentDidMount (line 1059) | componentDidMount() {
    method shouldScroll (line 1151) | shouldScroll(prevState, prevProps) {
    method componentDidUpdate (line 1164) | componentDidUpdate(prevProps, prevState) {
    method componentWillUnmount (line 1200) | componentWillUnmount() {
    method render (line 1204) | render() {
  function validateGetMenuPropsCalledCorrectly (line 1262) | function validateGetMenuPropsCalledCorrectly(node, {refKey}) {
  function validateGetRootPropsCalledCorrectly (line 1271) | function validateGetRootPropsCalledCorrectly(element, {refKey}) {

FILE: src/hooks/reducer.js
  function downshiftCommonReducer (line 5) | function downshiftCommonReducer(

FILE: src/hooks/testUtils.js
  function getLabel (line 74) | function getLabel() {
  function getMenu (line 77) | function getMenu() {
  function getToggleButton (line 80) | function getToggleButton() {
  function getItemAtIndex (line 83) | function getItemAtIndex(index) {
  function getItems (line 86) | function getItems() {
  function clickOnItemAtIndex (line 89) | async function clickOnItemAtIndex(index) {
  function clickOnToggleButton (line 92) | async function clickOnToggleButton() {
  function mouseMoveItemAtIndex (line 95) | async function mouseMoveItemAtIndex(index) {
  function mouseLeaveItemAtIndex (line 98) | async function mouseLeaveItemAtIndex(index) {
  function keyDownOnToggleButton (line 101) | async function keyDownOnToggleButton(keys) {
  function getA11yStatusContainer (line 108) | function getA11yStatusContainer() {
  function tab (line 111) | async function tab(shiftKey = false) {

FILE: src/hooks/useCombobox/__tests__/getInputProps.test.js
  method isItemDisabled (line 487) | isItemDisabled(_item, index) {
  method isItemDisabled (line 624) | isItemDisabled(item) {
  method isItemDisabled (line 664) | isItemDisabled(item) {
  method isItemDisabled (line 811) | isItemDisabled(_item, index) {
  method isItemDisabled (line 954) | isItemDisabled(item) {
  method isItemDisabled (line 994) | isItemDisabled(item) {
  method isItemDisabled (line 1092) | isItemDisabled(_item, index) {
  method isItemDisabled (line 1146) | isItemDisabled(_item, index) {
  method isItemDisabled (line 1198) | isItemDisabled(_item, index) {
  method isItemDisabled (line 1578) | isItemDisabled(_item, index) {
  method isItemDisabled (line 1652) | isItemDisabled(_item, index) {
  method isItemDisabled (line 2031) | isItemDisabled(item) {
  method isItemDisabled (line 2072) | isItemDisabled(item) {

FILE: src/hooks/useCombobox/__tests__/getItemProps.test.js
  method isItemDisabled (line 64) | isItemDisabled(_item, index) {
  method isItemDisabled (line 267) | isItemDisabled(_item, index) {
  method isItemDisabled (line 356) | isItemDisabled(_item, idx) {

FILE: src/hooks/useCombobox/__tests__/memo.test.js
  function renderItem (line 19) | function renderItem(props) {
  function isItemDisabled (line 22) | function isItemDisabled(_item, index) {

FILE: src/hooks/useCombobox/__tests__/props.test.js
  function itemToString (line 79) | function itemToString(item) {
  function itemToString (line 150) | function itemToString(item) {

FILE: src/hooks/useCombobox/__tests__/returnProps.test.js
  method isItemDisabled (line 97) | isItemDisabled(_item, index) {
  method isItemDisabled (line 188) | isItemDisabled(_item, index) {

FILE: src/hooks/useCombobox/index.js
  function useCombobox (line 31) | function useCombobox(userProps = {}) {

FILE: src/hooks/useCombobox/reducer.js
  function downshiftUseComboboxReducer (line 13) | function downshiftUseComboboxReducer(state, props, action) {

FILE: src/hooks/useCombobox/testUtils.js
  method useId (line 13) | useId() {
  function getInput (line 32) | function getInput() {
  function keyDownOnInput (line 36) | async function keyDownOnInput(keys) {
  function changeInputValue (line 44) | async function changeInputValue(inputValue) {
  function clickOnInput (line 52) | async function clickOnInput() {
  function DropdownCombobox (line 70) | function DropdownCombobox({renderSpy, renderItem, ...props}) {

FILE: src/hooks/useCombobox/utils.js
  function getInitialState (line 10) | function getInitialState(props) {
  function useControlledReducer (line 55) | function useControlledReducer(
  method isItemDisabled (line 102) | isItemDisabled() {

FILE: src/hooks/useMultipleSelection/index.js
  function useMultipleSelection (line 23) | function useMultipleSelection(userProps = {}) {

FILE: src/hooks/useMultipleSelection/reducer.js
  function downshiftMultipleSelectionReducer (line 5) | function downshiftMultipleSelectionReducer(

FILE: src/hooks/useMultipleSelection/testUtils.js
  method useId (line 17) | useId() {
  function getSelectedItemAtIndex (line 36) | function getSelectedItemAtIndex(index) {
  function getSelectedItems (line 40) | function getSelectedItems() {
  function clickOnSelectedItemAtIndex (line 44) | async function clickOnSelectedItemAtIndex(index) {
  function keyDownOnSelectedItemAtIndex (line 47) | async function keyDownOnSelectedItemAtIndex(index, key) {
  function focusSelectedItemAtIndex (line 57) | function focusSelectedItemAtIndex(index) {
  function clickOnInput (line 61) | async function clickOnInput() {

FILE: src/hooks/useMultipleSelection/utils.js
  function getInitialValue (line 24) | function getInitialValue(props, propKey) {
  function getDefaultValue (line 36) | function getDefaultValue(props, propKey) {
  function getInitialState (line 47) | function getInitialState(props) {
  function isKeyDownOperationPermitted (line 66) | function isKeyDownOperationPermitted(event) {
  function isStateEqual (line 93) | function isStateEqual(prevState, newState) {

FILE: src/hooks/useSelect/__tests__/getItemProps.test.js
  method isItemDisabled (line 69) | isItemDisabled(_item, index) {
  method isItemDisabled (line 293) | isItemDisabled(_item, index) {
  method isItemDisabled (line 384) | isItemDisabled(_item, idx) {

FILE: src/hooks/useSelect/__tests__/getToggleButtonProps.test.js
  method isItemDisabled (line 417) | isItemDisabled(item) {
  method isItemDisabled (line 458) | isItemDisabled(item) {
  method isItemDisabled (line 741) | isItemDisabled(_item, index) {
  method isItemDisabled (line 892) | isItemDisabled(item) {
  method isItemDisabled (line 932) | isItemDisabled(item) {
  method isItemDisabled (line 1081) | isItemDisabled(_item, index) {
  method isItemDisabled (line 1232) | isItemDisabled(item) {
  method isItemDisabled (line 1272) | isItemDisabled(item) {
  method isItemDisabled (line 1372) | isItemDisabled(_item, index) {
  method isItemDisabled (line 1428) | isItemDisabled(_item, index) {
  method isItemDisabled (line 1482) | isItemDisabled(_item, index) {
  method isItemDisabled (line 1830) | isItemDisabled(_item, index) {
  method isItemDisabled (line 1904) | isItemDisabled(_item, index) {

FILE: src/hooks/useSelect/__tests__/memo.test.js
  function renderItem (line 21) | function renderItem(props) {
  function isItemDisabled (line 24) | function isItemDisabled(_item, index) {

FILE: src/hooks/useSelect/__tests__/returnProps.test.js
  method isItemDisabled (line 97) | isItemDisabled(_item, index) {
  method isItemDisabled (line 161) | isItemDisabled(_item, index) {

FILE: src/hooks/useSelect/index.js
  function useSelect (line 33) | function useSelect(userProps = {}) {

FILE: src/hooks/useSelect/reducer.js
  function downshiftSelectReducer (line 14) | function downshiftSelectReducer(state, props, action) {

FILE: src/hooks/useSelect/testUtils.js
  method useId (line 33) | useId() {
  function renderUseSelect (line 42) | function renderUseSelect(props) {
  function renderSelect (line 45) | function renderSelect(props, uiCallback) {
  function DropdownSelect (line 59) | function DropdownSelect({renderSpy, renderItem, ...props}) {
  function getItemIndexByCharacter (line 109) | function getItemIndexByCharacter(character, startIndex = 0) {

FILE: src/hooks/useSelect/utils/defaultProps.ts
  method isItemDisabled (line 5) | isItemDisabled() {

FILE: src/hooks/useSelect/utils/getItemIndexByCharacterKey.ts
  type GetItemIndexByCharacterKeyOptions (line 1) | type GetItemIndexByCharacterKeyOptions<Item> = {
  function getItemIndexByCharacterKey (line 9) | function getItemIndexByCharacterKey<Item>({

FILE: src/hooks/useTagGroup/__tests__/getTagGroupProps.test.ts
  method useId (line 13) | useId() {

FILE: src/hooks/useTagGroup/__tests__/getTagProps.test.ts
  method useId (line 7) | useId() {

FILE: src/hooks/useTagGroup/__tests__/getTagRemoveProps.test.ts
  method useId (line 14) | useId() {

FILE: src/hooks/useTagGroup/__tests__/props.test.ts
  method getTagId (line 106) | getTagId(index) {

FILE: src/hooks/useTagGroup/__tests__/reducer.test.ts
  method stateReducer (line 9) | stateReducer(state) {

FILE: src/hooks/useTagGroup/__tests__/utils/renderTagGroup.tsx
  function renderTagGroup (line 10) | function renderTagGroup(props: Partial<UseTagGroupProps<string>> = {}) {
  function TagGroup (line 50) | function TagGroup(props: Partial<UseTagGroupProps<string>> = {}) {

FILE: src/hooks/useTagGroup/__tests__/utils/renderUseTagGroup.ts
  function renderUseTagGroup (line 7) | function renderUseTagGroup(

FILE: src/hooks/useTagGroup/index.types.ts
  type UseTagGroupState (line 3) | interface UseTagGroupState<Item> extends State {
  type Environment (line 8) | interface Environment {
  type UseTagGroupStateChange (line 15) | interface UseTagGroupStateChange<Item> extends Partial<
  type UseTagGroupActiveIndexChange (line 21) | interface UseTagGroupActiveIndexChange<
  type UseTagGroupItemsChange (line 27) | interface UseTagGroupItemsChange<
  type UseTagGroupProps (line 33) | interface UseTagGroupProps<Item> extends Partial<
  type UseTagGroupMergedProps (line 54) | type UseTagGroupMergedProps<Item> = Required<
  type UseTagGroupInterface (line 59) | interface UseTagGroupInterface {
  type UseTagGroupReturnValue (line 72) | interface UseTagGroupReturnValue<Item> {
  type GetTagPropsOptions (line 81) | interface GetTagPropsOptions extends React.HTMLProps<HTMLElement> {
  type GetTagPropsReturnValue (line 87) | interface GetTagPropsReturnValue {
  type GetTagRemovePropsOptions (line 96) | interface GetTagRemovePropsOptions extends React.HTMLProps<HTMLElement> {
  type GetTagRemovePropsReturnValue (line 100) | interface GetTagRemovePropsReturnValue {
  type GetTagGroupPropsOptions (line 108) | interface GetTagGroupPropsOptions extends React.HTMLProps<HTMLElement> {
  type GetTagGroupPropsReturnValue (line 113) | interface GetTagGroupPropsReturnValue {
  type GetTagGroupProps (line 121) | type GetTagGroupProps = <Extra extends Record<string, unknown> = {}>(
  type GetTagProps (line 125) | type GetTagProps = <Extra extends Record<string, unknown> = {}>(
  type GetTagRemoveProps (line 129) | type GetTagRemoveProps = <Extra extends Record<string, unknown> = {}>(
  type UseTagGroupStateChangeTypes (line 133) | enum UseTagGroupStateChangeTypes {
  type UseTagGroupReducerAction (line 143) | type UseTagGroupReducerAction<Item> =
  type UseTagGroupTagClickReducerAction (line 152) | type UseTagGroupTagClickReducerAction = {
  type UseTagGroupTagKeyDownArrowLeftAction (line 157) | type UseTagGroupTagKeyDownArrowLeftAction = {
  type UseTagGroupTagKeyDownArrowRightAction (line 160) | type UseTagGroupTagKeyDownArrowRightAction = {
  type UseTagGroupTagKeyDownBackspaceAction (line 163) | type UseTagGroupTagKeyDownBackspaceAction = {
  type UseTagGroupTagKeyDownDeleteAction (line 166) | type UseTagGroupTagKeyDownDeleteAction = {
  type UseTagGroupTagRemoveClickAction (line 169) | type UseTagGroupTagRemoveClickAction = {
  type UseTagGroupFunctionAddItem (line 173) | type UseTagGroupFunctionAddItem<Item> = {

FILE: src/hooks/useTagGroup/reducer.ts
  function useTagGroupReducer (line 8) | function useTagGroupReducer<Item>(

FILE: src/hooks/useTagGroup/utils/__tests__/useElementIds.r18.test.ts
  method useId (line 7) | useId() {

FILE: src/hooks/useTagGroup/utils/getInitialState.ts
  function getInitialState (line 3) | function getInitialState<I>(

FILE: src/hooks/useTagGroup/utils/getMergedProps.ts
  function getMergedProps (line 5) | function getMergedProps<Item>(

FILE: src/hooks/useTagGroup/utils/isStateEqual.ts
  function isStateEqual (line 3) | function isStateEqual<I>(

FILE: src/hooks/useTagGroup/utils/useAccessibleDescription.ts
  constant A11Y_DESCRIPTION_ELEMENT_ID (line 3) | const A11Y_DESCRIPTION_ELEMENT_ID = 'tag-group-a11y-description'
  function useAccessibleDescription (line 5) | function useAccessibleDescription(

FILE: src/hooks/useTagGroup/utils/useElementIds.ts
  type UseElementIdsProps (line 5) | type UseElementIdsProps = {
  type UseElementIdsReturnValue (line 11) | type UseElementIdsReturnValue = {
  function useElementIdsR18 (line 26) | function useElementIdsR18({
  function useElementIdsLegacy (line 47) | function useElementIdsLegacy({

FILE: src/hooks/useTagGroup/utils/useRovingTagFocus.ts
  function useRovingTagFocus (line 7) | function useRovingTagFocus(

FILE: src/hooks/utils-ts/callOnChangeProps.ts
  function callOnChangeProps (line 4) | function callOnChangeProps<
  function invokeOnChangeHandler (line 26) | function invokeOnChangeHandler<

FILE: src/hooks/utils-ts/capitalizeString.ts
  function capitalizeString (line 1) | function capitalizeString(string: string): string {

FILE: src/hooks/utils-ts/getDefaultValue.ts
  function getDefaultValue (line 4) | function getDefaultValue<S extends State, P extends Partial<S>>(

FILE: src/hooks/utils-ts/getInitialValue.ts
  function getInitialValue (line 5) | function getInitialValue<S extends State, P extends Partial<S>>(

FILE: src/hooks/utils-ts/getItemAndIndex.ts
  function getItemAndIndex (line 10) | function getItemAndIndex<Item>(

FILE: src/hooks/utils-ts/stateReducer.ts
  function stateReducer (line 7) | function stateReducer<T>(_s: State, a: Action<T>) {

FILE: src/hooks/utils-ts/useA11yMessageStatus.ts
  function useA11yMessageStatus (line 21) | function useA11yMessageStatus<Options>(

FILE: src/hooks/utils-ts/useControlledReducer.ts
  function useControlledReducer (line 14) | function useControlledReducer<

FILE: src/hooks/utils-ts/useEnhancedReducer.ts
  function useEnhancedReducer (line 23) | function useEnhancedReducer<

FILE: src/hooks/utils-ts/useIsInitialMount.ts
  function useIsInitialMount (line 6) | function useIsInitialMount(): boolean {

FILE: src/hooks/utils.dropdown/__tests__/useElementIds.r18.test.ts
  method useId (line 8) | useId() {

FILE: src/hooks/utils.dropdown/defaultProps.ts
  method itemToString (line 7) | itemToString(item: unknown) {
  method itemToKey (line 10) | itemToKey(item: unknown) {

FILE: src/hooks/utils.dropdown/useElementIds.ts
  type UseElementIdsProps (line 5) | type UseElementIdsProps = {
  type UseElementIdsReturnValue (line 14) | type UseElementIdsReturnValue = {
  function useElementIdsR18 (line 29) | function useElementIdsR18({
  function useElementIdsLegacy (line 56) | function useElementIdsLegacy({

FILE: src/hooks/utils.js
  function isAcceptedCharacterKey (line 16) | function isAcceptedCharacterKey(key) {
  function getInitialState (line 20) | function getInitialState(props) {
  function getHighlightedIndexOnOpen (line 47) | function getHighlightedIndexOnOpen(props, state, offset) {
  function useMouseAndTouchTracker (line 102) | function useMouseAndTouchTracker(
  function useScrollIntoView (line 243) | function useScrollIntoView({
  function getChangesOnSelection (line 302) | function getChangesOnSelection(props, highlightedIndex, inputValue = tru...
  function isDropdownsStateEqual (line 331) | function isDropdownsStateEqual(prevState, newState) {
  function getDefaultHighlightedIndex (line 346) | function getDefaultHighlightedIndex(props) {
  function getInitialHighlightedIndex (line 368) | function getInitialHighlightedIndex(props) {

FILE: src/utils-ts/callAllEventHandlers.ts
  function callAllEventHandlers (line 8) | function callAllEventHandlers(...fns: (Function | undefined)[]) {

FILE: src/utils-ts/debounce.ts
  function debounce (line 6) | function debounce(

FILE: src/utils-ts/generateId.ts
  function generateId (line 9) | function generateId(): string {
  function setIdCounter (line 17) | function setIdCounter(num: number): void {
  function resetIdCounter (line 24) | function resetIdCounter() {

FILE: src/utils-ts/getState.ts
  type Action (line 1) | interface Action<T> extends Record<string, unknown> {
  type State (line 5) | type State = Record<string, unknown>
  type Props (line 7) | interface Props<S, T> {
  function getState (line 26) | function getState<

FILE: src/utils-ts/handleRefs.ts
  function handleRefs (line 3) | function handleRefs(

FILE: src/utils-ts/noop.ts
  function noop (line 1) | function noop() {}

FILE: src/utils-ts/scrollIntoView.ts
  function scrollIntoView (line 8) | function scrollIntoView(

FILE: src/utils-ts/setA11yStatus.ts
  function getStatusDiv (line 10) | function getStatusDiv(document: Document) {
  function setStatus (line 39) | function setStatus(status: string, document: Document | undefined) {
  function cleanupStatusDiv (line 53) | function cleanupStatusDiv(document: Document | undefined) {

FILE: src/utils-ts/useLatestRef.ts
  function useLatestRef (line 3) | function useLatestRef<T>(val: T): React.MutableRefObject<T> {

FILE: src/utils.js
  function cbToCb (line 12) | function cbToCb(cb) {
  function isOrContainsNode (line 22) | function isOrContainsNode(parent, child, environment) {
  function debounce (line 39) | function debounce(fn, time) {
  function callAllEventHandlers (line 68) | function callAllEventHandlers(...fns) {
  function handleRefs (line 82) | function handleRefs(...refs) {
  function getA11yStatusMessage (line 102) | function getA11yStatusMessage({isOpen, resultCount, previousResultCount}) {
  function unwrapArray (line 127) | function unwrapArray(arg, defaultValue) {
  function isDOMElement (line 140) | function isDOMElement(element) {
  function getElementProps (line 157) | function getElementProps(element) {
  function requiredProp (line 174) | function requiredProp(fnName, propName) {
  function pickState (line 190) | function pickState(state = {}) {
  function isControlledProp (line 209) | function isControlledProp(props, key) {
  function normalizeArrowKey (line 218) | function normalizeArrowKey(event) {
  function isPlainObject (line 232) | function isPlainObject(obj) {
  function getHighlightedIndex (line 246) | function getHighlightedIndex(
  function getNonDisabledIndex (line 297) | function getNonDisabledIndex(
  function targetWithinDownshift (line 342) | function targetWithinDownshift(

FILE: test/basic.test.tsx
  type Item (line 4) | type Item = string
  type Props (line 6) | interface Props {}
  type State (line 8) | interface State {
  class App (line 12) | class App extends React.Component<Props, State> {
    method render (line 25) | render() {

FILE: test/custom.test.tsx
  type Item (line 4) | type Item = string
  type Props (line 6) | interface Props {}
  type State (line 8) | interface State {
  class App (line 24) | class App extends React.Component<Props, State> {
    method render (line 33) | render() {

FILE: test/downshift.test.tsx
  function ComboBox (line 21) | function ComboBox() {

FILE: test/useCombobox.test.tsx
  function DropdownCombobox (line 21) | function DropdownCombobox() {

FILE: test/useMultipleSelect.test.tsx
  function getFilteredItems (line 24) | function getFilteredItems(selectedItems: string[]): string[] {
  function DropdownMultipleSelect (line 28) | function DropdownMultipleSelect() {

FILE: test/useSelect.test.tsx
  function DropdownSelect (line 22) | function DropdownSelect() {

FILE: typings/index.legacy.d.ts
  type Callback (line 7) | type Callback = () => void
  type Overwrite (line 9) | type Overwrite<T, U> = Pick<T, Exclude<keyof T, keyof U>> & U
  type DownshiftState (line 11) | interface DownshiftState<Item> {
  type StateChangeTypes (line 18) | enum StateChangeTypes {
  type DownshiftProps (line 36) | interface DownshiftProps<Item> {
  type A11yStatusMessageOptions (line 87) | interface A11yStatusMessageOptions<Item> {
  type StateChangeOptions (line 98) | interface StateChangeOptions<Item> extends Partial<DownshiftState<Item>> {
  type StateChangeFunction (line 102) | type StateChangeFunction<Item> = (
  type GetRootPropsOptions (line 106) | interface GetRootPropsOptions {
  type GetRootPropsReturnValue (line 111) | interface GetRootPropsReturnValue {
  type GetInputPropsOptions (line 120) | interface GetInputPropsOptions extends React.HTMLProps<HTMLInputElement> {
  type GetInputPropsReturnValue (line 124) | interface GetInputPropsReturnValue {
  type GetLabelPropsOptions (line 139) | interface GetLabelPropsOptions extends React.HTMLProps<HTMLLabelElement> {}
  type GetLabelPropsReturnValue (line 141) | interface GetLabelPropsReturnValue {
  type GetToggleButtonPropsOptions (line 146) | interface GetToggleButtonPropsOptions extends React.HTMLProps<HTMLButton...
  type GetToggleButtonPropsReturnValue (line 151) | interface GetToggleButtonPropsReturnValue {
  type GetMenuPropsOptions (line 164) | interface GetMenuPropsOptions
  type GetMenuPropsReturnValue (line 169) | interface GetMenuPropsReturnValue {
  type GetPropsCommonOptions (line 176) | interface GetPropsCommonOptions {
  type GetPropsWithRefKey (line 180) | interface GetPropsWithRefKey {
  type GetItemPropsOptions (line 184) | interface GetItemPropsOptions<Item> extends React.HTMLProps<HTMLElement> {
  type GetItemPropsReturnValue (line 191) | interface GetItemPropsReturnValue {
  type PropGetters (line 201) | interface PropGetters<Item> {
  type Actions (line 224) | interface Actions<Item> {
  type ControllerStateAndHelpers (line 265) | type ControllerStateAndHelpers<Item> = DownshiftState<Item> &
  type ChildrenFunction (line 269) | type ChildrenFunction<Item> = (
  class Downshift (line 273) | class Downshift<Item = any> extends React.Component<
  type UseSelectState (line 299) | interface UseSelectState<Item> {
  type UseSelectStateChangeTypes (line 306) | enum UseSelectStateChangeTypes {
  type UseSelectProps (line 331) | interface UseSelectProps<Item> {
  type UseSelectStateChangeOptions (line 365) | interface UseSelectStateChangeOptions<
  type UseSelectDispatchAction (line 371) | interface UseSelectDispatchAction<Item> {
  type UseSelectStateChange (line 381) | interface UseSelectStateChange<Item> extends Partial<UseSelectState<Item...
  type UseSelectSelectedItemChange (line 385) | interface UseSelectSelectedItemChange<Item> extends UseSelectStateChange...
  type UseSelectHighlightedIndexChange (line 389) | interface UseSelectHighlightedIndexChange<
  type UseSelectIsOpenChange (line 395) | interface UseSelectIsOpenChange<Item> extends UseSelectStateChange<Item> {
  type UseSelectGetMenuPropsOptions (line 399) | interface UseSelectGetMenuPropsOptions
  type UseSelectGetMenuReturnValue (line 402) | interface UseSelectGetMenuReturnValue extends GetMenuPropsReturnValue {
  type UseSelectGetToggleButtonPropsOptions (line 406) | interface UseSelectGetToggleButtonPropsOptions
  type UseSelectGetToggleButtonReturnValue (line 411) | interface UseSelectGetToggleButtonReturnValue extends Pick<
  type UseSelectGetLabelPropsOptions (line 426) | interface UseSelectGetLabelPropsOptions extends GetLabelPropsOptions {}
  type UseSelectGetLabelPropsReturnValue (line 428) | interface UseSelectGetLabelPropsReturnValue extends GetLabelPropsReturnV...
  type UseSelectGetItemPropsOptions (line 432) | interface UseSelectGetItemPropsOptions<Item>
  type UseSelectGetItemPropsReturnValue (line 435) | interface UseSelectGetItemPropsReturnValue extends GetItemPropsReturnVal...
  type UseSelectPropGetters (line 440) | interface UseSelectPropGetters<Item> {
  type UseSelectActions (line 460) | interface UseSelectActions<Item> {
  type UseSelectReturnValue (line 469) | type UseSelectReturnValue<Item> = UseSelectState<Item> &
  type UseSelectInterface (line 473) | interface UseSelectInterface {
  type UseComboboxState (line 505) | interface UseComboboxState<Item> {
  type UseComboboxStateChangeTypes (line 512) | enum UseComboboxStateChangeTypes {
  type UseComboboxProps (line 538) | interface UseComboboxProps<Item> {
  type UseComboboxStateChangeOptions (line 577) | interface UseComboboxStateChangeOptions<
  type UseComboboxDispatchAction (line 583) | interface UseComboboxDispatchAction<Item> {
  type UseComboboxStateChange (line 593) | interface UseComboboxStateChange<Item> extends Partial<UseComboboxState<...
  type UseComboboxSelectedItemChange (line 597) | interface UseComboboxSelectedItemChange<
  type UseComboboxHighlightedIndexChange (line 603) | interface UseComboboxHighlightedIndexChange<
  type UseComboboxIsOpenChange (line 609) | interface UseComboboxIsOpenChange<Item> extends UseComboboxStateChange<I...
  type UseComboboxInputValueChange (line 613) | interface UseComboboxInputValueChange<
  type UseComboboxGetMenuPropsOptions (line 619) | interface UseComboboxGetMenuPropsOptions
  type UseComboboxGetMenuPropsReturnValue (line 622) | interface UseComboboxGetMenuPropsReturnValue extends UseSelectGetMenuRet...
  type UseComboboxGetToggleButtonPropsOptions (line 624) | interface UseComboboxGetToggleButtonPropsOptions
  type UseComboboxGetToggleButtonPropsReturnValue (line 627) | interface UseComboboxGetToggleButtonPropsReturnValue {
  type UseComboboxGetLabelPropsOptions (line 637) | interface UseComboboxGetLabelPropsOptions extends GetLabelPropsOptions {}
  type UseComboboxGetLabelPropsReturnValue (line 639) | interface UseComboboxGetLabelPropsReturnValue extends GetLabelPropsRetur...
  type UseComboboxGetItemPropsOptions (line 641) | interface UseComboboxGetItemPropsOptions<Item>
  type UseComboboxGetItemPropsReturnValue (line 644) | interface UseComboboxGetItemPropsReturnValue extends GetItemPropsReturnV...
  type UseComboboxGetInputPropsOptions (line 649) | interface UseComboboxGetInputPropsOptions
  type UseComboboxGetInputPropsReturnValue (line 652) | interface UseComboboxGetInputPropsReturnValue extends GetInputPropsRetur...
  type UseComboboxPropGetters (line 660) | interface UseComboboxPropGetters<Item> {
  type UseComboboxActions (line 683) | interface UseComboboxActions<Item> {
  type UseComboboxReturnValue (line 693) | type UseComboboxReturnValue<Item> = UseComboboxState<Item> &
  type UseComboboxInterface (line 697) | interface UseComboboxInterface {
  type UseMultipleSelectionState (line 730) | interface UseMultipleSelectionState<Item> {
  type UseMultipleSelectionStateChangeTypes (line 735) | enum UseMultipleSelectionStateChangeTypes {
  type UseMultipleSelectionProps (line 751) | interface UseMultipleSelectionProps<Item> {
  type UseMultipleSelectionStateChangeOptions (line 776) | interface UseMultipleSelectionStateChangeOptions<
  type UseMultipleSelectionDispatchAction (line 782) | interface UseMultipleSelectionDispatchAction<Item> {
  type UseMultipleSelectionStateChange (line 790) | interface UseMultipleSelectionStateChange<Item> extends Partial<
  type UseMultipleSelectionActiveIndexChange (line 796) | interface UseMultipleSelectionActiveIndexChange<
  type UseMultipleSelectionSelectedItemsChange (line 802) | interface UseMultipleSelectionSelectedItemsChange<
  type A11yRemovalMessage (line 808) | interface A11yRemovalMessage<Item> {
  type UseMultipleSelectionGetSelectedItemPropsOptions (line 816) | interface UseMultipleSelectionGetSelectedItemPropsOptions<Item>
  type UseMultipleSelectionGetSelectedItemReturnValue (line 822) | interface UseMultipleSelectionGetSelectedItemReturnValue {
  type UseMultipleSelectionGetDropdownPropsOptions (line 829) | interface UseMultipleSelectionGetDropdownPropsOptions extends React.HTML...
  type UseMultipleSelectionGetDropdownReturnValue (line 833) | interface UseMultipleSelectionGetDropdownReturnValue {
  type UseMultipleSelectionPropGetters (line 839) | interface UseMultipleSelectionPropGetters<Item> {
  type UseMultipleSelectionActions (line 855) | interface UseMultipleSelectionActions<Item> {
  type UseMultipleSelectionReturnValue (line 863) | type UseMultipleSelectionReturnValue<Item> = UseMultipleSelectionState<I...
  type UseMultipleSelectionInterface (line 867) | interface UseMultipleSelectionInterface {
Condensed preview — 231 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (1,212K chars).
[
  {
    "path": ".all-contributorsrc",
    "chars": 37081,
    "preview": "{\n  \"projectName\": \"downshift\",\n  \"projectOwner\": \"downshift-js\",\n  \"repoType\": \"github\",\n  \"files\": [\n    \"README.md\"\n "
  },
  {
    "path": ".flowconfig",
    "chars": 82,
    "preview": "[ignore]\n.*/node_modules/\n\n[include]\n./test\n\n[libs]\n\n[lints]\nall=error\n\n[options]\n"
  },
  {
    "path": ".gitattributes",
    "chars": 29,
    "preview": "* text=auto\n*.js text eol=lf\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE.md",
    "chars": 970,
    "preview": "<!--\nThanks for your interest in the project. I appreciate bugs filed and PRs submitted!\nPlease make sure that you are f"
  },
  {
    "path": ".github/PULL_REQUEST_TEMPLATE.md",
    "chars": 1302,
    "preview": "<!--\nThanks for your interest in the project. Bugs filed and PRs submitted are appreciated!\n\nPlease make sure that you a"
  },
  {
    "path": ".github/workflows/validate.yml",
    "chars": 2541,
    "preview": "name: validate\non:\n  push:\n    branches:\n      - '+([0-9])?(.{+([0-9]),x}).x'\n      - 'master'\n      - 'next'\n      - 'n"
  },
  {
    "path": ".gitignore",
    "chars": 412,
    "preview": "node_modules\ncoverage\ndist\n.opt-in\n.opt-out\n.DS_Store\n.next\n.eslintcache\npreact/\n\ncypress/videos\ncypress/screenshots\n\n# "
  },
  {
    "path": ".npmrc",
    "chars": 56,
    "preview": "registry=https://registry.npmjs.org/\npackage-lock=false\n"
  },
  {
    "path": ".nvmrc",
    "chars": 8,
    "preview": "16.14.0\n"
  },
  {
    "path": ".prettierignore",
    "chars": 69,
    "preview": "node_modules/\ncoverage/\ndist/\npreact/\npackage-lock.json\npackage.json\n"
  },
  {
    "path": "CHANGELOG.md",
    "chars": 187,
    "preview": "# CHANGELOG\n\nThe changelog is automatically updated using\n[semantic-release](https://github.com/semantic-release/semanti"
  },
  {
    "path": "CODE_OF_CONDUCT.md",
    "chars": 3676,
    "preview": "# Contributor Covenant Code of Conduct\n\n<!-- START doctoc generated TOC please keep comment here to allow auto update --"
  },
  {
    "path": "CONTRIBUTING.md",
    "chars": 3137,
    "preview": "# Contributing\n\nThanks for being willing to contribute!\n\n**Working on your first Pull Request?** You can learn how from "
  },
  {
    "path": "LICENSE",
    "chars": 1072,
    "preview": "The MIT License (MIT)\nCopyright (c) 2017 PayPal\n\nPermission is hereby granted, free of charge, to any person obtaining a"
  },
  {
    "path": "README.md",
    "chars": 119986,
    "preview": "<h1 align=\"center\">\n  downshift 🏎\n  <br>\n  <img src=\"https://raw.githubusercontent.com/downshift-js/downshift/master/oth"
  },
  {
    "path": "babel.config.js",
    "chars": 647,
    "preview": "const originalPreset = require('kcd-scripts/babel')\nconst customPreset = api => {\n  api.cache(true)\n  const evaluatedPre"
  },
  {
    "path": "cypress/.eslintrc",
    "chars": 105,
    "preview": "{\n  \"plugins\": [\"cypress\"],\n  \"globals\": {\n    \"cy\": true,\n    \"Cypress\": true,\n    \"before\": true\n  }\n}\n"
  },
  {
    "path": "cypress/e2e/combobox.cy.js",
    "chars": 4487,
    "preview": "// the combobox happens to be in the center of the page.\n// without specifying an x and y for the body events\n// we actu"
  },
  {
    "path": "cypress/e2e/useCombobox.cy.js",
    "chars": 324,
    "preview": "describe('useCombobox', () => {\n  before(() => {\n    cy.visit('/useCombobox')\n  })\n\n  it('should keep focus on the input"
  },
  {
    "path": "cypress/e2e/useMultipleCombobox.cy.js",
    "chars": 562,
    "preview": "describe('useMultipleCombobox', () => {\n  before(() => {\n    cy.visit('/useMultipleCombobox')\n  })\n\n  it('can select mul"
  },
  {
    "path": "cypress/e2e/useMultipleSelect.cy.js",
    "chars": 518,
    "preview": "describe('useMultipleSelect', () => {\n  before(() => {\n    cy.visit('/useMultipleSelect')\n  })\n\n  it('can select multipl"
  },
  {
    "path": "cypress/e2e/useSelect.cy.js",
    "chars": 466,
    "preview": "describe('useSelect', () => {\n  before(() => {\n    cy.visit('/useSelect')\n  })\n\n  it('can open and close a menu', () => "
  },
  {
    "path": "cypress/e2e/useTagGroup.cy.js",
    "chars": 2751,
    "preview": "describe('useTagGroup', () => {\n  const colors = ['Black', 'Red', 'Green', 'Blue', 'Orange']\n\n  beforeEach(() => {\n    c"
  },
  {
    "path": "cypress/fixtures/example.json",
    "chars": 3,
    "preview": "{}\n"
  },
  {
    "path": "cypress/plugins/index.js",
    "chars": 144,
    "preview": "module.exports = (_on, _config) => {\n  // `on` is used to hook into various events Cypress emits\n  // `config` is the re"
  },
  {
    "path": "cypress/support/e2e.js",
    "chars": 75,
    "preview": "// eslint-disable-next-line\nimport '@testing-library/cypress/add-commands'\n"
  },
  {
    "path": "cypress.config.js",
    "chars": 499,
    "preview": "const webpackPreprocessor = require('@cypress/webpack-preprocessor')\nconst {defineConfig} = require('cypress')\n\nmodule.e"
  },
  {
    "path": "docusaurus/pages/combobox.js",
    "chars": 2435,
    "preview": "import * as React from 'react'\n\nimport Downshift from '../../src'\nimport {colors, containerStyles, menuStyles} from '../"
  },
  {
    "path": "docusaurus/pages/index.js",
    "chars": 782,
    "preview": "import * as React from 'react'\n\nexport default function Docs() {\n  return (\n    <div style={{width: '50%', margin: '200p"
  },
  {
    "path": "docusaurus/pages/useCombobox.js",
    "chars": 2105,
    "preview": "import * as React from 'react'\n\nimport {useCombobox} from '../../src'\nimport {colors, containerStyles, menuStyles} from "
  },
  {
    "path": "docusaurus/pages/useMultipleCombobox.js",
    "chars": 5186,
    "preview": "import * as React from 'react'\n\nimport {useCombobox, useMultipleSelection} from '../../src'\nimport {\n  colors,\n  contain"
  },
  {
    "path": "docusaurus/pages/useMultipleSelect.js",
    "chars": 4031,
    "preview": "import * as React from 'react'\n\nimport {useSelect, useMultipleSelection} from '../../src'\nimport {\n  colors,\n  container"
  },
  {
    "path": "docusaurus/pages/useSelect.js",
    "chars": 1517,
    "preview": "import * as React from 'react'\n\nimport {useSelect} from '../../src'\nimport {colors, containerStyles, menuStyles} from '."
  },
  {
    "path": "docusaurus/pages/useTagGroup.css",
    "chars": 538,
    "preview": ".tag-group {\n  display: inline-flex;\n  gap: 8px;\n  align-items: center;\n  flex-wrap: wrap;\n  padding: 6px;\n}\n\n.tag {\n  b"
  },
  {
    "path": "docusaurus/pages/useTagGroup.tsx",
    "chars": 1556,
    "preview": "import * as React from 'react'\n\nimport {useTagGroup} from '../../src'\nimport {colors} from '../utils'\n\nimport './useTagG"
  },
  {
    "path": "docusaurus/pages/useTagGroupCombobox.css",
    "chars": 815,
    "preview": ".wrapper {\n  width: 18rem;\n  display: flex;\n  flex-direction: column;\n  gap: 0.25rem;\n}\n\n.wrapper label {\n  width: fit-c"
  },
  {
    "path": "docusaurus/pages/useTagGroupCombobox.tsx",
    "chars": 3123,
    "preview": "import * as React from 'react'\n\nimport {UseComboboxInterface} from '../../typings'\nimport {useTagGroup, useCombobox as u"
  },
  {
    "path": "docusaurus/plugins/webpack5polyfills.js",
    "chars": 412,
    "preview": "const NodePolyfillPlugin = require('node-polyfill-webpack-plugin')\n\n// eslint-disable-next-line\nmodule.exports = functio"
  },
  {
    "path": "docusaurus/tsconfig.json",
    "chars": 137,
    "preview": "{\n  \"extends\": \"../tsconfig.json\",\n  \"compilerOptions\": {\n    \"noEmit\": true,\n  },\n  \"include\": [\"./**/*.tsx*\", \"../typi"
  },
  {
    "path": "docusaurus/utils.ts",
    "chars": 968,
    "preview": "import {type CSSProperties} from 'react'\n\nexport const colors = [\n  'Black',\n  'Red',\n  'Green',\n  'Blue',\n  'Orange',\n "
  },
  {
    "path": "docusaurus.config.js",
    "chars": 1360,
    "preview": "// @ts-check\n// Note: type annotations allow type checking and IDEs autocompletion\n\n/** @type {import('@docusaurus/types"
  },
  {
    "path": "flow-typed/npm/downshift_v2.x.x.js.flow",
    "chars": 8590,
    "preview": "/**\n * Flowtype definitions for index\n * Generated by Flowgen from a Typescript Definition\n * Flowgen v1.2.0\n * Author: "
  },
  {
    "path": "jest.config.js",
    "chars": 341,
    "preview": "const jestConfig = require('kcd-scripts/jest')\n\nmodule.exports = Object.assign(jestConfig, {\n  coveragePathIgnorePattern"
  },
  {
    "path": "netlify.toml",
    "chars": 125,
    "preview": "# COMMENT: This a rule for Single Page Applications as Docz site is one\n[[redirects]]\n  from = \"/*\"\n  to = \"/\"\n  status "
  },
  {
    "path": "other/MAINTAINING.md",
    "chars": 3661,
    "preview": "# Maintaining\n\n<!-- START doctoc generated TOC please keep comment here to allow auto update -->\n\n<!-- DON'T EDIT THIS S"
  },
  {
    "path": "other/TYPESCRIPT_USAGE.md",
    "chars": 396,
    "preview": "# Typescript Usage\n\nThe current bundled Typescript definitions are incomplete and based around the\nneeds of the develope"
  },
  {
    "path": "other/USERS.md",
    "chars": 567,
    "preview": "# Users\n\n<!-- START doctoc generated TOC please keep comment here to allow auto update -->\n\n<!-- DON'T EDIT THIS SECTION"
  },
  {
    "path": "other/manual-releases.md",
    "chars": 1545,
    "preview": "# manual-releases\n\n<!-- START doctoc generated TOC please keep comment here to allow auto update -->\n\n<!-- DON'T EDIT TH"
  },
  {
    "path": "other/misc-tests/__tests__/build.js",
    "chars": 6639,
    "preview": "/*\n * This file is here to validate that the built version\n * of the library exposes the module in the way that we\n * wa"
  },
  {
    "path": "other/misc-tests/__tests__/preact.js",
    "chars": 2983,
    "preview": "// Tell Babel to transform JSX into preact.h() calls:\n/** @jsx preact.h */\n/*\neslint-disable\nreact/prop-types,\nno-consol"
  },
  {
    "path": "other/misc-tests/jest.config.js",
    "chars": 640,
    "preview": "const jestConfig = require('kcd-scripts/config').jest\nconst babelHelpersList = require('@babel/helpers').list\n\nmodule.ex"
  },
  {
    "path": "other/react-native/.babelrc",
    "chars": 34,
    "preview": "{\n  \"presets\": [\"react-native\"]\n}\n"
  },
  {
    "path": "other/react-native/__tests__/__snapshots__/render-tests.js.snap",
    "chars": 1027,
    "preview": "// Jest Snapshot v1, https://goo.gl/fbAQLP\n\nexports[`renders with React Native components 1`] = `\n<View\n  aria-expanded="
  },
  {
    "path": "other/react-native/__tests__/onBlur-tests.js",
    "chars": 1179,
    "preview": "import {Text, TextInput, View} from 'react-native'\nimport * as React from 'react'\n\n// Note: test renderer must be requir"
  },
  {
    "path": "other/react-native/__tests__/onChange-tests.js",
    "chars": 2249,
    "preview": "import {Text, TextInput, View} from 'react-native'\nimport * as React from 'react'\n\n// Note: test renderer must be requir"
  },
  {
    "path": "other/react-native/__tests__/render-tests.js",
    "chars": 1821,
    "preview": "import {Text, TextInput, View} from 'react-native'\nimport * as React from 'react'\n\n// Note: test renderer must be requir"
  },
  {
    "path": "other/react-native/jest.config.js",
    "chars": 308,
    "preview": "// const jestConfig = require('kcd-scripts/config').jest\n\nmodule.exports = {\n  preset: 'react-native',\n  rootDir: '../.."
  },
  {
    "path": "other/ssr/__tests__/index.js",
    "chars": 1201,
    "preview": "import * as React from 'react'\nimport * as ReactDOMServer from 'react-dom/server'\nimport Downshift, {resetIdCounter} fro"
  },
  {
    "path": "other/ssr/jest.config.js",
    "chars": 357,
    "preview": "// This is separate because the test environment is set via the config\n// and we want most of our tests to run with jsdo"
  },
  {
    "path": "package.json",
    "chars": 6775,
    "preview": "{\n  \"name\": \"downshift\",\n  \"version\": \"0.0.0-semantically-released\",\n  \"description\": \"🏎 A set of primitives to build si"
  },
  {
    "path": "prettier.config.js",
    "chars": 101,
    "preview": "// this is really only here for editor integrations\nmodule.exports = require('kcd-scripts/prettier')\n"
  },
  {
    "path": "rollup.config.js",
    "chars": 838,
    "preview": "const commonjs = require('@rollup/plugin-commonjs')\nconst {babel} = require('@rollup/plugin-babel')\nconst config = requi"
  },
  {
    "path": "src/__mocks__/set-a11y-status.js",
    "chars": 69,
    "preview": "module.exports = {setStatus: jest.fn(), cleanupStatusDiv: jest.fn()}\n"
  },
  {
    "path": "src/__mocks__/utils.js",
    "chars": 170,
    "preview": "const actualUtils = jest.requireActual('../utils')\nmodule.exports = Object.assign(actualUtils, {\n  scrollIntoView: jest."
  },
  {
    "path": "src/__tests__/.eslintrc",
    "chars": 232,
    "preview": "{\n  \"rules\": {\n    \"jsx-a11y/label-has-for\": \"off\",\n    \"jsx-a11y/click-events-have-key-events\": \"off\",\n    \"react/prop-"
  },
  {
    "path": "src/__tests__/__snapshots__/downshift.aria.js.snap",
    "chars": 1641,
    "preview": "// Jest Snapshot v1, https://goo.gl/fbAQLP\n\nexports[`basic snapshot 1`] = `\n<div\n  aria-expanded=false\n  aria-haspopup=l"
  },
  {
    "path": "src/__tests__/__snapshots__/downshift.get-item-props.js.snap",
    "chars": 943,
    "preview": "// Jest Snapshot v1, https://goo.gl/fbAQLP\n\nexports[`getItemProps defaults the index when no index is given 1`] = `\n<div"
  },
  {
    "path": "src/__tests__/__snapshots__/downshift.get-menu-props.js.snap",
    "chars": 409,
    "preview": "// Jest Snapshot v1, https://goo.gl/fbAQLP\n\nexports[`not applying the ref prop results in an error 1`] = `downshift: The"
  },
  {
    "path": "src/__tests__/__snapshots__/downshift.get-root-props.js.snap",
    "chars": 789,
    "preview": "// Jest Snapshot v1, https://goo.gl/fbAQLP\n\nexports[`not applying the ref prop results in an error 1`] = `downshift: You"
  },
  {
    "path": "src/__tests__/__snapshots__/downshift.misc.js.snap",
    "chars": 1337,
    "preview": "// Jest Snapshot v1, https://goo.gl/fbAQLP\n\nexports[`expect console.warn to fire—depending on process.env.NODE_ENV value"
  },
  {
    "path": "src/__tests__/__snapshots__/set-a11y-status.js.snap",
    "chars": 1368,
    "preview": "// Jest Snapshot v1, https://goo.gl/fbAQLP\n\nexports[`creates new status div if there is none 1`] = `\n[\n  [\n    id,\n    a"
  },
  {
    "path": "src/__tests__/downshift.aria.js",
    "chars": 2449,
    "preview": "import * as React from 'react'\nimport {render, screen} from '@testing-library/react'\nimport Downshift from '../'\nimport "
  },
  {
    "path": "src/__tests__/downshift.focus-restoration.js",
    "chars": 1209,
    "preview": "import * as React from 'react'\nimport {render, screen} from '@testing-library/react'\nimport userEvent from '@testing-lib"
  },
  {
    "path": "src/__tests__/downshift.get-button-props.js",
    "chars": 4661,
    "preview": "import * as React from 'react'\nimport {render, fireEvent, act} from '@testing-library/react'\nimport Downshift from '../'"
  },
  {
    "path": "src/__tests__/downshift.get-input-props.js",
    "chars": 22978,
    "preview": "import * as React from 'react'\nimport {\n  render,\n  fireEvent,\n  screen,\n  createEvent,\n  act,\n} from '@testing-library/"
  },
  {
    "path": "src/__tests__/downshift.get-item-props.js",
    "chars": 11428,
    "preview": "import * as React from 'react'\nimport {render, fireEvent, screen} from '@testing-library/react'\nimport Downshift from '."
  },
  {
    "path": "src/__tests__/downshift.get-label-props.js",
    "chars": 1556,
    "preview": "import * as React from 'react'\nimport {render, screen} from '@testing-library/react'\nimport Downshift from '../'\n\nbefore"
  },
  {
    "path": "src/__tests__/downshift.get-menu-props.js",
    "chars": 3775,
    "preview": "import * as React from 'react'\nimport {render} from '@testing-library/react'\nimport Downshift from '../'\n\nbeforeEach(() "
  },
  {
    "path": "src/__tests__/downshift.get-root-props.js",
    "chars": 5079,
    "preview": "import * as React from 'react'\nimport {render} from '@testing-library/react'\nimport Downshift from '../'\n\nconst MyDiv = "
  },
  {
    "path": "src/__tests__/downshift.lifecycle.js",
    "chars": 8560,
    "preview": "import * as React from 'react'\n\nimport {act, fireEvent, render, screen} from '@testing-library/react'\nimport Downshift f"
  },
  {
    "path": "src/__tests__/downshift.misc-with-utils-mocked.js",
    "chars": 1704,
    "preview": "// this is stuff that I couldn't think fit anywhere else\n// but we still want to have tested.\n\nimport * as React from 'r"
  },
  {
    "path": "src/__tests__/downshift.misc.js",
    "chars": 6856,
    "preview": "// this is stuff that I couldn't think fit anywhere else\n// but we still want to have tested.\n\nimport * as React from 'r"
  },
  {
    "path": "src/__tests__/downshift.props.js",
    "chars": 6208,
    "preview": "// this is stuff that I couldn't think fit anywhere else\n// but we still want to have tested.\n\nimport * as React from 'r"
  },
  {
    "path": "src/__tests__/portal-support.js",
    "chars": 2518,
    "preview": "import * as React from 'react'\nimport * as ReactDOM from 'react-dom'\nimport {render, fireEvent, screen, act} from '@test"
  },
  {
    "path": "src/__tests__/set-a11y-status.js",
    "chars": 2455,
    "preview": "jest.useFakeTimers()\n\nbeforeEach(() => {\n  document.body.innerHTML = ''\n})\n\ntest('sets the status', () => {\n  const setA"
  },
  {
    "path": "src/__tests__/utils.call-all-event-handlers.js",
    "chars": 820,
    "preview": "import {callAllEventHandlers} from '../utils'\n\ntest('prevent default handlers when defaultDownshiftPrevented is true', ("
  },
  {
    "path": "src/__tests__/utils.get-a11y-status-message.js",
    "chars": 1397,
    "preview": "import {getA11yStatusMessage} from '../utils'\n\nconst tests = [\n  {\n    input: {\n      isOpen: false,\n      selectedItem:"
  },
  {
    "path": "src/__tests__/utils.get-highlighted-index.js",
    "chars": 5403,
    "preview": "import {getHighlightedIndex} from '../utils'\n\ntest('should return next index', () => {\n  const offset = 1\n  const start "
  },
  {
    "path": "src/__tests__/utils.handle-refs.js",
    "chars": 437,
    "preview": "import {handleRefs} from '../utils'\n\ntest('handle object and functinonal refs', () => {\n  const refValue = 'Here could b"
  },
  {
    "path": "src/__tests__/utils.pick-state.js",
    "chars": 455,
    "preview": "import {pickState} from '../utils'\n\ntest('pickState only picks state that downshift cares about', () => {\n  const otherS"
  },
  {
    "path": "src/__tests__/utils.reset-id-counter.js",
    "chars": 2172,
    "preview": "import * as React from 'react'\nimport {render, screen} from '@testing-library/react'\nimport Downshift from '../'\nimport "
  },
  {
    "path": "src/__tests__/utils.reset-id-counter.r18.js",
    "chars": 1448,
    "preview": "import * as React from 'react'\nimport {render, screen} from '@testing-library/react'\nimport Downshift from '..'\nimport {"
  },
  {
    "path": "src/__tests__/utils.scroll-into-view.js",
    "chars": 3209,
    "preview": "import {scrollIntoView} from '../utils-ts'\n\ntest('does not throw with a null node', () => {\n  expect(() => scrollIntoVie"
  },
  {
    "path": "src/downshift.js",
    "chars": 39264,
    "preview": "/* eslint camelcase:0 */\n\nimport PropTypes from 'prop-types'\nimport {Component, cloneElement} from 'react'\nimport {isFor"
  },
  {
    "path": "src/hooks/MIGRATION_V7.md",
    "chars": 10316,
    "preview": "# Migration from v6 to v7\n\nSince version _7.0.0_ Downshift follows the (ARIA 1.2 guideline for the\ncombobox)[select-aria"
  },
  {
    "path": "src/hooks/MIGRATION_V8.md",
    "chars": 5293,
    "preview": "# Migration from v7 to v8\n\nDownshift v8 receives a list of breaking changes, which are necessary to improve\nboth the use"
  },
  {
    "path": "src/hooks/MIGRATION_V9.md",
    "chars": 3662,
    "preview": "# Migration from v8 to v9\n\nDownshift v8 receives a list of breaking changes, which are necessary to improve\nboth the use"
  },
  {
    "path": "src/hooks/README.md",
    "chars": 2680,
    "preview": "# Downshift Hooks\n\nA set of hooks to build simple, flexible, WAI-ARIA compliant React dropdown\ncomponents. Developed as "
  },
  {
    "path": "src/hooks/__tests__/__snapshots__/utils.test.js.snap",
    "chars": 1347,
    "preview": "// Jest Snapshot v1, https://goo.gl/fbAQLP\n\nexports[`utils useMouseAndTouchTracker adds and removes listeners to environ"
  },
  {
    "path": "src/hooks/__tests__/utils.test.js",
    "chars": 5294,
    "preview": "import {renderHook} from '@testing-library/react'\nimport {useMouseAndTouchTracker, isDropdownsStateEqual} from '../utils"
  },
  {
    "path": "src/hooks/index.ts",
    "chars": 226,
    "preview": "export {default as useSelect} from './useSelect'\nexport {default as useCombobox} from './useCombobox'\nexport {default as"
  },
  {
    "path": "src/hooks/reducer.js",
    "chars": 2201,
    "preview": "import {getHighlightedIndexOnOpen, getDefaultHighlightedIndex} from './utils'\nimport {getDefaultValue} from './utils-ts'"
  },
  {
    "path": "src/hooks/testUtils.js",
    "chars": 3519,
    "preview": "import React from 'react'\nimport {screen, act} from '@testing-library/react'\nimport userEvent from '@testing-library/use"
  },
  {
    "path": "src/hooks/useCombobox/README.md",
    "chars": 43287,
    "preview": "# useCombobox\n\n## The problem\n\nYou have a combobox or autocomplete dropdown in your application and you want it\nto be ac"
  },
  {
    "path": "src/hooks/useCombobox/__tests__/__snapshots__/getInputProps.test.js.snap",
    "chars": 879,
    "preview": "// Jest Snapshot v1, https://goo.gl/fbAQLP\n\nexports[`getInputProps event handlers on key down arrow down defaultHighligh"
  },
  {
    "path": "src/hooks/useCombobox/__tests__/getInputProps.test.js",
    "chars": 66652,
    "preview": "import * as React from 'react'\nimport {act, renderHook, fireEvent, createEvent} from '@testing-library/react'\nimport * a"
  },
  {
    "path": "src/hooks/useCombobox/__tests__/getItemProps.test.js",
    "chars": 12025,
    "preview": "import {act, renderHook} from '@testing-library/react'\nimport {\n  renderCombobox,\n  renderUseCombobox,\n  items,\n  defaul"
  },
  {
    "path": "src/hooks/useCombobox/__tests__/getLabelProps.test.js",
    "chars": 1157,
    "preview": "import {renderUseCombobox} from '../testUtils'\nimport {defaultIds} from '../../testUtils'\n\ndescribe('getLabelProps', () "
  },
  {
    "path": "src/hooks/useCombobox/__tests__/getMenuProps.test.js",
    "chars": 6922,
    "preview": "import {act, renderHook} from '@testing-library/react'\nimport {noop} from '../../../utils-ts'\nimport {getInput, renderCo"
  },
  {
    "path": "src/hooks/useCombobox/__tests__/getToggleButtonProps.test.js",
    "chars": 7515,
    "preview": "import {act} from '@testing-library/react'\nimport {\n  renderCombobox,\n  renderUseCombobox,\n  items,\n  defaultIds,\n  clic"
  },
  {
    "path": "src/hooks/useCombobox/__tests__/memo.test.js",
    "chars": 1067,
    "preview": "import React from 'react'\nimport {\n  renderUseCombobox,\n  renderCombobox,\n  getInput,\n  keyDownOnInput,\n} from '../testU"
  },
  {
    "path": "src/hooks/useCombobox/__tests__/props.test.js",
    "chars": 41885,
    "preview": "import React from 'react'\nimport {renderHook, act} from '@testing-library/react'\nimport {\n  renderCombobox,\n  renderUseC"
  },
  {
    "path": "src/hooks/useCombobox/__tests__/returnProps.test.js",
    "chars": 6531,
    "preview": "import {act} from '@testing-library/react'\n\nimport {renderUseCombobox} from '../testUtils'\nimport {items} from '../../te"
  },
  {
    "path": "src/hooks/useCombobox/__tests__/utils.test.js",
    "chars": 269,
    "preview": "import reducer from '../reducer'\n\ndescribe('utils', () => {\n  test('reducer throws error if called without proper action"
  },
  {
    "path": "src/hooks/useCombobox/index.js",
    "chars": 15604,
    "preview": "import {useRef, useEffect, useCallback, useMemo} from 'react'\nimport {isPreact, isReactNative, isReactNativeWeb} from '."
  },
  {
    "path": "src/hooks/useCombobox/reducer.js",
    "chars": 4715,
    "preview": "import {\n  getHighlightedIndexOnOpen,\n  getChangesOnSelection,\n  getDefaultHighlightedIndex,\n} from '../utils'\nimport {g"
  },
  {
    "path": "src/hooks/useCombobox/stateChangeTypes.js",
    "chars": 1811,
    "preview": "import productionEnum from '../../productionEnum.macro'\n\nexport const InputKeyDownArrowDown = productionEnum(\n  '__input"
  },
  {
    "path": "src/hooks/useCombobox/testUtils.js",
    "chars": 2996,
    "preview": "import * as React from 'react'\nimport {render, screen, renderHook} from '@testing-library/react'\nimport {dropdownDefault"
  },
  {
    "path": "src/hooks/useCombobox/utils.js",
    "chars": 3141,
    "preview": "import {useRef, useEffect} from 'react'\nimport PropTypes from 'prop-types'\nimport {isControlledProp} from '../../utils'\n"
  },
  {
    "path": "src/hooks/useMultipleSelection/MIGRATION_GUIDE.md",
    "chars": 13626,
    "preview": "# useMultipleSelection to useTagGroup\n\n## Usage examples\n\nLet's consider the following usage examples:\n\n```javascript\nim"
  },
  {
    "path": "src/hooks/useMultipleSelection/README.md",
    "chars": 36905,
    "preview": "# useMultipleSelection\n\n## Deprecated: migration to useTagGroup\n\nIf you're considering a multiple selection solution wit"
  },
  {
    "path": "src/hooks/useMultipleSelection/__tests__/getDropdownProps.test.js",
    "chars": 9519,
    "preview": "import {act, renderHook} from '@testing-library/react'\nimport {\n  clickOnInput,\n  focusSelectedItemAtIndex,\n  getSelecte"
  },
  {
    "path": "src/hooks/useMultipleSelection/__tests__/getSelectedItemProps.test.js",
    "chars": 15630,
    "preview": "import {act} from '@testing-library/react'\n\nimport {\n  renderUseMultipleSelection,\n  renderMultipleCombobox,\n  clickOnSe"
  },
  {
    "path": "src/hooks/useMultipleSelection/__tests__/memo.test.js",
    "chars": 313,
    "preview": "import {renderUseMultipleSelection} from '../testUtils'\n\ntest('functions are memoized', () => {\n  const {result, rerende"
  },
  {
    "path": "src/hooks/useMultipleSelection/__tests__/props.test.js",
    "chars": 25488,
    "preview": "import {act, renderHook} from '@testing-library/react'\nimport * as stateChangeTypes from '../stateChangeTypes'\nimport {\n"
  },
  {
    "path": "src/hooks/useMultipleSelection/__tests__/returnProps.test.js",
    "chars": 4745,
    "preview": "import {act} from '@testing-library/react'\n\nimport {renderUseMultipleSelection} from '../testUtils'\nimport * as stateCha"
  },
  {
    "path": "src/hooks/useMultipleSelection/__tests__/utils.test.js",
    "chars": 269,
    "preview": "import reducer from '../reducer'\n\ndescribe('utils', () => {\n  test('reducer throws error if called without proper action"
  },
  {
    "path": "src/hooks/useMultipleSelection/index.js",
    "chars": 7068,
    "preview": "import {useRef, useEffect, useCallback, useMemo} from 'react'\nimport {handleRefs, callAllEventHandlers, normalizeArrowKe"
  },
  {
    "path": "src/hooks/useMultipleSelection/reducer.js",
    "chars": 3423,
    "preview": "import {getDefaultValue} from './utils'\nimport * as stateChangeTypes from './stateChangeTypes'\n\n/* eslint-disable comple"
  },
  {
    "path": "src/hooks/useMultipleSelection/stateChangeTypes.js",
    "chars": 1287,
    "preview": "import productionEnum from '../../productionEnum.macro'\n\nexport const SelectedItemClick = productionEnum('__selected_ite"
  },
  {
    "path": "src/hooks/useMultipleSelection/testUtils.js",
    "chars": 3150,
    "preview": "import * as React from 'react'\n\nimport {render, screen, renderHook} from '@testing-library/react'\nimport {dropdownDefaul"
  },
  {
    "path": "src/hooks/useMultipleSelection/utils.js",
    "chars": 4240,
    "preview": "import PropTypes from 'prop-types'\n\nimport {noop} from '../../utils-ts'\nimport {\n  getInitialValue as getInitialValueCom"
  },
  {
    "path": "src/hooks/useSelect/README.md",
    "chars": 38068,
    "preview": "# useSelect\n\n## The problem\n\nYou have a custom select dropdown in your application and you want it to behave\nexactly the"
  },
  {
    "path": "src/hooks/useSelect/__tests__/__snapshots__/getToggleButtonProps.test.js.snap",
    "chars": 903,
    "preview": "// Jest Snapshot v1, https://goo.gl/fbAQLP\n\nexports[`getToggleButtonProps event handlers on keydown arrow down defaultHi"
  },
  {
    "path": "src/hooks/useSelect/__tests__/getItemProps.test.js",
    "chars": 12529,
    "preview": "import {act, renderHook} from '@testing-library/react'\nimport {\n  renderUseSelect,\n  renderSelect,\n  mouseMoveItemAtInde"
  },
  {
    "path": "src/hooks/useSelect/__tests__/getLabelProps.test.js",
    "chars": 2584,
    "preview": "import {screen} from '@testing-library/react'\nimport {renderSelect, renderUseSelect} from '../testUtils'\nimport {default"
  },
  {
    "path": "src/hooks/useSelect/__tests__/getMenuProps.test.js",
    "chars": 7741,
    "preview": "import {renderHook, act} from '@testing-library/react'\nimport {\n  renderUseSelect,\n  renderSelect,\n  getToggleButton,\n  "
  },
  {
    "path": "src/hooks/useSelect/__tests__/getToggleButtonProps.test.js",
    "chars": 68119,
    "preview": "import * as React from 'react'\nimport {\n  act,\n  createEvent,\n  fireEvent,\n  screen,\n  renderHook,\n} from '@testing-libr"
  },
  {
    "path": "src/hooks/useSelect/__tests__/memo.test.js",
    "chars": 1062,
    "preview": "import React from 'react'\nimport {\n  renderUseSelect,\n  renderSelect,\n  keyDownOnToggleButton,\n  getToggleButton,\n  item"
  },
  {
    "path": "src/hooks/useSelect/__tests__/props.test.js",
    "chars": 26490,
    "preview": "import {act, renderHook} from '@testing-library/react'\nimport {\n  clickOnItemAtIndex,\n  clickOnToggleButton,\n  getA11ySt"
  },
  {
    "path": "src/hooks/useSelect/__tests__/returnProps.test.js",
    "chars": 5710,
    "preview": "import {act} from '@testing-library/react'\nimport {items} from '../../testUtils'\nimport {renderUseSelect} from '../testU"
  },
  {
    "path": "src/hooks/useSelect/__tests__/utils.test.ts",
    "chars": 1745,
    "preview": "import {getItemIndexByCharacterKey} from '../utils'\nimport reducer from '../reducer'\n\ndescribe('getItemIndexByCharacterK"
  },
  {
    "path": "src/hooks/useSelect/index.js",
    "chars": 14037,
    "preview": "import {useRef, useEffect, useCallback, useMemo} from 'react'\nimport {useLatestRef, validatePropTypes} from '../../utils"
  },
  {
    "path": "src/hooks/useSelect/reducer.js",
    "chars": 4772,
    "preview": "import {getNonDisabledIndex, getHighlightedIndex} from '../../utils'\nimport {\n  getHighlightedIndexOnOpen,\n  getChangesO"
  },
  {
    "path": "src/hooks/useSelect/stateChangeTypes.js",
    "chars": 1939,
    "preview": "import productionEnum from '../../productionEnum.macro'\n\nexport const ToggleButtonClick = productionEnum('__togglebutton"
  },
  {
    "path": "src/hooks/useSelect/testUtils.js",
    "chars": 8377,
    "preview": "import * as React from 'react'\nimport {render, act, renderHook} from '@testing-library/react'\nimport {dropdownDefaultPro"
  },
  {
    "path": "src/hooks/useSelect/utils/defaultProps.ts",
    "chars": 161,
    "preview": "import {dropdownDefaultProps} from '../../utils.dropdown'\n\nexport const defaultProps = {\n  ...dropdownDefaultProps,\n  is"
  },
  {
    "path": "src/hooks/useSelect/utils/getItemIndexByCharacterKey.ts",
    "chars": 961,
    "preview": "type GetItemIndexByCharacterKeyOptions<Item> = {\n  keysSoFar: string\n  highlightedIndex: number\n  items: Item[]\n  itemTo"
  },
  {
    "path": "src/hooks/useSelect/utils/index.ts",
    "chars": 154,
    "preview": "export {propTypes} from './propTypes'\nexport {defaultProps} from './defaultProps'\nexport {getItemIndexByCharacterKey} fr"
  },
  {
    "path": "src/hooks/useSelect/utils/propTypes.ts",
    "chars": 215,
    "preview": "import PropTypes from 'prop-types'\nimport {dropdownPropTypes} from '../../utils.dropdown'\n\nexport const propTypes = {\n  "
  },
  {
    "path": "src/hooks/useTagGroup/README.md",
    "chars": 25920,
    "preview": "# useTagGroup\n\n## The problem\n\nYou want to build a tag group component in your app that's accessible and offers\na great "
  },
  {
    "path": "src/hooks/useTagGroup/__tests__/getTagGroupProps.test.ts",
    "chars": 7582,
    "preview": "import {\n  act,\n  screen,\n  defaultProps,\n  renderTagGroup,\n  renderUseTagGroup,\n} from './utils'\n\n// We are using React"
  },
  {
    "path": "src/hooks/useTagGroup/__tests__/getTagProps.test.ts",
    "chars": 3034,
    "preview": "import {A11Y_DESCRIPTION_ELEMENT_ID} from '../utils'\nimport {renderTagGroup, renderUseTagGroup, defaultIds, act} from '."
  },
  {
    "path": "src/hooks/useTagGroup/__tests__/getTagRemoveProps.test.ts",
    "chars": 4057,
    "preview": "import {\n  renderTagGroup,\n  renderUseTagGroup,\n  defaultIds,\n  act,\n  defaultProps,\n  screen,\n} from './utils'\n\n// We a"
  },
  {
    "path": "src/hooks/useTagGroup/__tests__/props.test.ts",
    "chars": 12113,
    "preview": "/* eslint-disable testing-library/prefer-screen-queries */\nimport useTagGroup from '..'\nimport {A11Y_DESCRIPTION_ELEMENT"
  },
  {
    "path": "src/hooks/useTagGroup/__tests__/reducer.test.ts",
    "chars": 517,
    "preview": "import {UseTagGroupReducerAction} from '../index.types'\nimport {useTagGroupReducer} from '../reducer'\n\ntest('reducer thr"
  },
  {
    "path": "src/hooks/useTagGroup/__tests__/returnProps.test.ts",
    "chars": 2265,
    "preview": "import useTagGroup from '..'\nimport * as stateChangeTypes from '../stateChangeTypes'\nimport {renderUseTagGroup, act, def"
  },
  {
    "path": "src/hooks/useTagGroup/__tests__/utils/defaultIds.ts",
    "chars": 140,
    "preview": "export const defaultIds = {\n  tagGroupId: 'downshift-test-id-tag-group',\n  getTagId: (index: number) => `downshift-test-"
  },
  {
    "path": "src/hooks/useTagGroup/__tests__/utils/defaultProps.ts",
    "chars": 245,
    "preview": "export const colors = [\n  'Black',\n  'Red',\n  'Green',\n  'Blue',\n  'Orange',\n  'Purple',\n  'Pink',\n  'Orchid',\n  'Aqua',"
  },
  {
    "path": "src/hooks/useTagGroup/__tests__/utils/index.ts",
    "chars": 234,
    "preview": "export * from '@testing-library/react'\n\nexport {defaultProps, colors} from './defaultProps'\nexport {renderTagGroup} from"
  },
  {
    "path": "src/hooks/useTagGroup/__tests__/utils/renderTagGroup.tsx",
    "chars": 1855,
    "preview": "/* eslint-disable testing-library/prefer-screen-queries */\nimport * as React from 'react'\nimport {render} from '@testing"
  },
  {
    "path": "src/hooks/useTagGroup/__tests__/utils/renderUseTagGroup.ts",
    "chars": 496,
    "preview": "import {renderHook} from '@testing-library/react'\n\nimport {UseTagGroupProps, UseTagGroupReturnValue} from '../../index.t"
  },
  {
    "path": "src/hooks/useTagGroup/index.ts",
    "chars": 5509,
    "preview": "import {useCallback} from 'react'\n\nimport {\n  callAllEventHandlers,\n  handleRefs,\n  useLatestRef,\n  validatePropTypes,\n}"
  },
  {
    "path": "src/hooks/useTagGroup/index.types.ts",
    "chars": 5481,
    "preview": "import {Action, State} from '../../utils-ts'\n\nexport interface UseTagGroupState<Item> extends State {\n  activeIndex: num"
  },
  {
    "path": "src/hooks/useTagGroup/reducer.ts",
    "chars": 2739,
    "preview": "import {\n  UseTagGroupProps,\n  UseTagGroupReducerAction,\n  UseTagGroupState,\n} from './index.types'\nimport * as stateCha"
  },
  {
    "path": "src/hooks/useTagGroup/stateChangeTypes.ts",
    "chars": 1055,
    "preview": "import productionEnum from '../../productionEnum.macro'\nimport {UseTagGroupStateChangeTypes} from './index.types'\n\nexpor"
  },
  {
    "path": "src/hooks/useTagGroup/utils/__tests__/useAccessibleDescription.test.ts",
    "chars": 1713,
    "preview": "import {renderHook, act} from '@testing-library/react'\nimport {A11Y_DESCRIPTION_ELEMENT_ID, useAccessibleDescription} fr"
  },
  {
    "path": "src/hooks/useTagGroup/utils/__tests__/useElementIds.legacy.test.ts",
    "chars": 2741,
    "preview": "import {renderHook} from '@testing-library/react'\nimport {useElementIds} from '..'\n\njest.mock('react', () => {\n  const {"
  },
  {
    "path": "src/hooks/useTagGroup/utils/__tests__/useElementIds.r18.test.ts",
    "chars": 2783,
    "preview": "import {renderHook} from '@testing-library/react'\nimport {useElementIds} from '..'\n\njest.mock('react', () => {\n  return "
  },
  {
    "path": "src/hooks/useTagGroup/utils/getInitialState.ts",
    "chars": 373,
    "preview": "import {UseTagGroupProps, UseTagGroupState} from '../index.types'\n\nexport function getInitialState<I>(\n  props: UseTagGr"
  },
  {
    "path": "src/hooks/useTagGroup/utils/getMergedProps.ts",
    "chars": 536,
    "preview": "import {UseTagGroupProps, UseTagGroupMergedProps} from '../index.types'\n\nimport {isReactNative} from '../../../is.macro."
  },
  {
    "path": "src/hooks/useTagGroup/utils/index.ts",
    "chars": 524,
    "preview": "import PropTypes from 'prop-types'\n\nexport {useElementIds} from './useElementIds'\nexport {getInitialState} from './getIn"
  },
  {
    "path": "src/hooks/useTagGroup/utils/isStateEqual.ts",
    "chars": 269,
    "preview": "import {UseTagGroupState} from '../index.types'\n\nexport function isStateEqual<I>(\n  oldState: UseTagGroupState<I>,\n  new"
  },
  {
    "path": "src/hooks/useTagGroup/utils/useAccessibleDescription.ts",
    "chars": 706,
    "preview": "import * as React from 'react'\n\nexport const A11Y_DESCRIPTION_ELEMENT_ID = 'tag-group-a11y-description'\n\nexport function"
  },
  {
    "path": "src/hooks/useTagGroup/utils/useElementIds.ts",
    "chars": 1497,
    "preview": "import * as React from 'react'\n\nimport {generateId} from '../../../utils-ts'\n\ntype UseElementIdsProps = {\n  id?: string\n"
  },
  {
    "path": "src/hooks/useTagGroup/utils/useRovingTagFocus.ts",
    "chars": 1013,
    "preview": "import * as React from 'react'\nimport {UseTagGroupProps} from '../index.types'\n\n/**\n * Focuses the tag at activeIndex wh"
  },
  {
    "path": "src/hooks/utils-ts/__tests__/getItemAndIndex.test.ts",
    "chars": 1340,
    "preview": "import {getItemAndIndex} from '../getItemAndIndex'\n\ntest('returns the props if both are passed', () => {\n  const item = "
  },
  {
    "path": "src/hooks/utils-ts/callOnChangeProps.ts",
    "chars": 1066,
    "preview": "import {Action, Props, State} from '../../utils-ts'\nimport {capitalizeString} from './capitalizeString'\n\nexport function"
  },
  {
    "path": "src/hooks/utils-ts/capitalizeString.ts",
    "chars": 126,
    "preview": "export function capitalizeString(string: string): string {\n  return `${string.slice(0, 1).toUpperCase()}${string.slice(1"
  },
  {
    "path": "src/hooks/utils-ts/getDefaultValue.ts",
    "chars": 432,
    "preview": "import {State} from '../../utils-ts'\nimport {capitalizeString} from './capitalizeString'\n\nexport function getDefaultValu"
  },
  {
    "path": "src/hooks/utils-ts/getInitialValue.ts",
    "chars": 626,
    "preview": "import {State} from '../../utils-ts'\nimport {capitalizeString} from './capitalizeString'\nimport {getDefaultValue} from '"
  },
  {
    "path": "src/hooks/utils-ts/getItemAndIndex.ts",
    "chars": 1057,
    "preview": "/**\n * Returns both the item and index when both or either is passed.\n *\n * @param itemProp The item which could be unde"
  },
  {
    "path": "src/hooks/utils-ts/index.ts",
    "chars": 587,
    "preview": "export {useControlledReducer} from './useControlledReducer'\nexport {useEnhancedReducer} from './useEnhancedReducer'\nexpo"
  },
  {
    "path": "src/hooks/utils-ts/propTypes.ts",
    "chars": 567,
    "preview": "import PropTypes from 'prop-types'\n\n// Shared between all exports.\nexport const propTypes = {\n  environment: PropTypes.s"
  },
  {
    "path": "src/hooks/utils-ts/stateReducer.ts",
    "chars": 188,
    "preview": "import {Action, State} from '../../utils-ts'\n\n/**\n * Default state reducer that returns the changes.\n *\n */\nexport funct"
  },
  {
    "path": "src/hooks/utils-ts/useA11yMessageStatus.ts",
    "chars": 1659,
    "preview": "import * as React from 'react'\n\nimport {cleanupStatusDiv, debounce, setStatus} from '../../utils-ts'\nimport {isReactNati"
  },
  {
    "path": "src/hooks/utils-ts/useControlledReducer.ts",
    "chars": 1114,
    "preview": "import {getState, type Action, type State, type Props} from '../../utils-ts'\nimport {useEnhancedReducer} from './useEnha"
  },
  {
    "path": "src/hooks/utils-ts/useEnhancedReducer.ts",
    "chars": 2253,
    "preview": "import * as React from 'react'\n\nimport {\n  type Action,\n  type Props,\n  type State,\n  getState,\n  useLatestRef,\n} from '"
  },
  {
    "path": "src/hooks/utils-ts/useIsInitialMount.ts",
    "chars": 347,
    "preview": "import * as React from 'react'\n\n/**\n * Tracks if it's the first render.\n */\nexport function useIsInitialMount(): boolean"
  },
  {
    "path": "src/hooks/utils.dropdown/__tests__/useElementIds.legacy.test.ts",
    "chars": 3985,
    "preview": "import {renderHook} from '@testing-library/react'\n\nimport {useElementIds} from '../useElementIds'\n\njest.mock('react', ()"
  },
  {
    "path": "src/hooks/utils.dropdown/__tests__/useElementIds.r18.test.ts",
    "chars": 4051,
    "preview": "import {renderHook} from '@testing-library/react'\n\nimport {useElementIds} from '../useElementIds'\n\njest.mock('react', ()"
  },
  {
    "path": "src/hooks/utils.dropdown/defaultProps.ts",
    "chars": 451,
    "preview": "import {scrollIntoView} from '../../utils-ts'\nimport {stateReducer} from '../utils-ts'\n\nimport {isReactNative} from '../"
  },
  {
    "path": "src/hooks/utils.dropdown/defaultStateValues.ts",
    "chars": 130,
    "preview": "export const defaultStateValues = {\n  highlightedIndex: -1,\n  isOpen: false,\n  selectedItem: null as unknown,\n  inputVal"
  },
  {
    "path": "src/hooks/utils.dropdown/index.ts",
    "chars": 213,
    "preview": "export {propTypes as dropdownPropTypes} from './propTypes'\nexport {defaultProps as dropdownDefaultProps} from './default"
  },
  {
    "path": "src/hooks/utils.dropdown/propTypes.ts",
    "chars": 883,
    "preview": "import PropTypes from 'prop-types'\n\nimport {commonPropTypes} from '../utils-ts'\n\n// Shared between useSelect, useCombobo"
  },
  {
    "path": "src/hooks/utils.dropdown/useElementIds.ts",
    "chars": 1945,
    "preview": "import * as React from 'react'\n\nimport {generateId} from '../../utils-ts'\n\ntype UseElementIdsProps = {\n  id?: string\n  l"
  },
  {
    "path": "src/hooks/utils.js",
    "chars": 11330,
    "preview": "import * as React from 'react'\nimport {isReactNative} from '../is.macro'\nimport {validateControlledUnchanged, targetWith"
  },
  {
    "path": "src/index.ts",
    "chars": 395,
    "preview": "export {default} from './downshift'\nexport {resetIdCounter} from './utils-ts'\nexport {useSelect, useCombobox, useTagGrou"
  },
  {
    "path": "src/is.macro.d.ts",
    "chars": 94,
    "preview": "export declare const isPreact: boolean,\n  isReactNative: boolean,\n  isReactNativeWeb: boolean\n"
  },
  {
    "path": "src/is.macro.js",
    "chars": 988,
    "preview": "const {createMacro, MacroError} = require('babel-plugin-macros')\n\nconst importToEnvVar = {\n  isPreact: 'BUILD_PREACT',\n "
  }
]

// ... and 31 more files (download for full content)

About this extraction

This page contains the full source code of the downshift-js/downshift GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 231 files (1.1 MB), approximately 287.2k tokens, and a symbol index with 385 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!