mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Merge pull request #14478 from devrelm/devrelm/react-select
[react-select] Add optionClassName to ReactSelectProps
This commit is contained in:
Vendored
+5
-1
@@ -1,6 +1,6 @@
|
||||
// Type definitions for react-select v1.0.0
|
||||
// Project: https://github.com/JedWatson/react-select
|
||||
// Definitions by: ESQUIBET Hugo <https://github.com/Hesquibet/>, Gilad Gray <https://github.com/giladgray/>, Izaak Baker <https://github.com/iebaker/>, Tadas Dailyda <https://github.com/skirsdeda/>, Mark Vujevits <https://github.com/vujevits/>
|
||||
// Definitions by: ESQUIBET Hugo <https://github.com/Hesquibet/>, Gilad Gray <https://github.com/giladgray/>, Izaak Baker <https://github.com/iebaker/>, Tadas Dailyda <https://github.com/skirsdeda/>, Mark Vujevits <https://github.com/vujevits/>, Mike Deverell <https://github.com/devrelm/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
@@ -272,6 +272,10 @@ declare namespace ReactSelectClass {
|
||||
* @default false
|
||||
*/
|
||||
openOnFocus?: boolean;
|
||||
/**
|
||||
* className to add to each option component
|
||||
*/
|
||||
optionClassName?: string;
|
||||
/**
|
||||
* option component to render in dropdown
|
||||
*/
|
||||
|
||||
@@ -99,6 +99,7 @@ class SelectTest extends React.Component<React.Props<{}>, {}> {
|
||||
className: "test-select",
|
||||
key: "1",
|
||||
options: options,
|
||||
optionClassName: 'test-select-option',
|
||||
optionRenderer: optionRenderer,
|
||||
autofocus: true,
|
||||
autosize: true,
|
||||
|
||||
Reference in New Issue
Block a user