[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-3612":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":24,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":16,"starSnapshotCount":16,"syncStatus":19,"lastSyncTime":29,"discoverSource":30},3612,"react-select","JedWatson\u002Freact-select","JedWatson","The Select Component for React.js","https:\u002F\u002Freact-select.com\u002F",null,"TypeScript",28039,4123,211,393,0,4,15,2,73.5,"MIT License",false,"master",true,[],"2026-06-12 04:00:18","[![NPM](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002Freact-select.svg)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Freact-select)\n[![CircleCI](https:\u002F\u002Fcircleci.com\u002Fgh\u002FJedWatson\u002Freact-select\u002Ftree\u002Fmaster.svg?style=shield)](https:\u002F\u002Fcircleci.com\u002Fgh\u002FJedWatson\u002Freact-select\u002Ftree\u002Fmaster)\n[![Coverage Status](https:\u002F\u002Fcoveralls.io\u002Frepos\u002FJedWatson\u002Freact-select\u002Fbadge.svg?branch=master&service=github)](https:\u002F\u002Fcoveralls.io\u002Fgithub\u002FJedWatson\u002Freact-select?branch=master)\n[![Supported by Thinkmill](https:\u002F\u002Fthinkmill.github.io\u002Fbadge\u002Fheart.svg)](http:\u002F\u002Fthinkmill.com.au\u002F?utm_source=github&utm_medium=badge&utm_campaign=react-select)\n\n# React-Select\n\nThe Select control for [React](https:\u002F\u002Freactjs.org). Initially built for use in [KeystoneJS](https:\u002F\u002Fwww.keystonejs.com).\n\nSee [react-select.com](https:\u002F\u002Fwww.react-select.com) for live demos and comprehensive docs.\n\n`react-select` is funded by [Thinkmill](https:\u002F\u002Fwww.thinkmill.com.au) and [Atlassian](https:\u002F\u002Fatlaskit.atlassian.com).\nWe are an open source project that is continuously supported by the community.\n\nReact Select helps you develop powerful select components that _just work_ out of the box, without stopping you from customising the parts that are important to you.\n\nFor the story behind this component, watch Jed's talk at React Conf 2019 - [building React Select](https:\u002F\u002Fyoutu.be\u002FyS0jUnmBujE)\n\nFeatures include:\n\n- Flexible approach to data, with customisable functions\n- Extensible styling API with [emotion](https:\u002F\u002Femotion.sh)\n- Component Injection API for complete control over the UI behaviour\n- Controllable state props and modular architecture\n- Long-requested features like option groups, portal support, animation, and more\n\n## Using an older version?\n\n- [v3, v4, and v5 upgrade guide](https:\u002F\u002Freact-select.com\u002Fupgrade)\n- [v2 upgrade guide](https:\u002F\u002Freact-select.com\u002Fupgrade-to-v2)\n- React Select v1 documentation and examples are available at [v1.react-select.com](https:\u002F\u002Fv1.react-select.com)\n\n# Installation and usage\n\nThe easiest way to use react-select is to install it from npm and build it into your app with Webpack.\n\n```\nyarn add react-select\n```\n\nThen use it in your app:\n\n```js\nimport React, { useState } from 'react';\nimport Select from 'react-select';\n\nconst options = [\n  { value: 'chocolate', label: 'Chocolate' },\n  { value: 'strawberry', label: 'Strawberry' },\n  { value: 'vanilla', label: 'Vanilla' },\n];\n\nexport default function App() {\n  const [selectedOption, setSelectedOption] = useState(null);\n\n  return (\n    \u003Cdiv className=\"App\">\n      \u003CSelect\n        defaultValue={selectedOption}\n        onChange={setSelectedOption}\n        options={options}\n      \u002F>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n## Props\n\nCommon props you may want to specify include:\n\n- `autoFocus` - focus the control when it mounts\n- `className` - apply a className to the control\n- `classNamePrefix` - apply classNames to inner elements with the given prefix\n- `isDisabled` - disable the control\n- `isMulti` - allow the user to select multiple values\n- `isSearchable` - allow the user to search for matching options\n- `name` - generate an HTML input with this name, containing the current value\n- `onChange` - subscribe to change events\n- `options` - specify the options the user can select from\n- `placeholder` - change the text displayed when no option is selected\n- `noOptionsMessage` - ({ inputValue: string }) => string | null - Text to display when there are no options\n- `value` - control the current value\n\nSee the [props documentation](https:\u002F\u002Fwww.react-select.com\u002Fprops) for complete documentation on the props react-select supports.\n\n## Controllable Props\n\nYou can control the following props by providing values for them. If you don't, react-select will manage them for you.\n\n- `value` \u002F `onChange` - specify the current value of the control\n- `menuIsOpen` \u002F `onMenuOpen` \u002F `onMenuClose` - control whether the menu is open\n- `inputValue` \u002F `onInputChange` - control the value of the search input (changing this will update the available options)\n\nIf you don't provide these props, you can set the initial value of the state they control:\n\n- `defaultValue` - set the initial value of the control\n- `defaultMenuIsOpen` - set the initial open value of the menu\n- `defaultInputValue` - set the initial value of the search input\n\n## Methods\n\nReact-select exposes two public methods:\n\n- `focus()` - focus the control programmatically\n- `blur()` - blur the control programmatically\n\n## Customisation\n\nCheck the docs for more information on:\n\n- [Customising the styles](https:\u002F\u002Fwww.react-select.com\u002Fstyles)\n- [Using custom components](https:\u002F\u002Fwww.react-select.com\u002Fcomponents)\n- [Using the built-in animated components](https:\u002F\u002Fwww.react-select.com\u002Fhome#animated-components)\n- [Creating an async select](https:\u002F\u002Fwww.react-select.com\u002Fasync)\n- [Allowing users to create new options](https:\u002F\u002Fwww.react-select.com\u002Fcreatable)\n- [Advanced use-cases](https:\u002F\u002Fwww.react-select.com\u002Fadvanced)\n- [TypeScript guide](https:\u002F\u002Fwww.react-select.com\u002Ftypescript)\n\n## TypeScript\n\nThe v5 release represents a rewrite from JavaScript to TypeScript. The types for v4 and earlier releases are available at [@types](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@types\u002Freact-select). See the [TypeScript guide](https:\u002F\u002Fwww.react-select.com\u002Ftypescript) for how to use the types starting with v5.\n\n# Thanks\n\nThank you to everyone who has contributed to this project. It's been a wild ride.\n\nIf you like React Select, you should [follow me on Twitter](https:\u002F\u002Ftwitter.com\u002Fjedwatson)!\n\nShout out to [Joss Mackison](https:\u002F\u002Fgithub.com\u002Fjossmac), [Charles Lee](https:\u002F\u002Fgithub.com\u002Fgwyneplaine), [Ben Conolly](https:\u002F\u002Fgithub.com\u002FNoviny), [Tom Walker](https:\u002F\u002Fgithub.com\u002Fbladey), [Nathan Bierema](https:\u002F\u002Fgithub.com\u002FMethuselah96), [Eric Bonow](https:\u002F\u002Fgithub.com\u002Febonow), [Emma Hamilton](https:\u002F\u002Fgithub.com\u002Femmatown), [Dave Brotherstone](https:\u002F\u002Fgithub.com\u002Fbruderstein), [Brian Vaughn](https:\u002F\u002Fgithub.com\u002Fbvaughn), and the [Atlassian Design System](https:\u002F\u002Fatlassian.design) team who along with many other contributors have made this possible ❤️\n\n## License\n\nMIT Licensed. Copyright (c) Jed Watson 2022.\n","React-Select 是一个用于 React.js 的选择组件。它支持灵活的数据处理方式和可自定义的功能，提供了基于 emotion 的可扩展样式 API 以及组件注入 API，允许开发者对 UI 行为进行全面控制。此外，React-Select 还具备可控状态属性和模块化架构，支持选项组、portal 支持、动画等高级特性。适用于需要在 React 应用中集成强大且高度可定制的选择器的各种场景，如表单构建、数据筛选等。","2026-06-11 02:54:57","top_language"]