mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
react-bootstrap-typeahead: Added isInvalid, isValid introduced in 3.2 (#27640)
This commit is contained in:
parent
5568145d86
commit
735b9a1cc6
8
types/react-bootstrap-typeahead/index.d.ts
vendored
8
types/react-bootstrap-typeahead/index.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
// Type definitions for react-bootstrap-typeahead 3.1
|
||||
// Type definitions for react-bootstrap-typeahead 3.2
|
||||
// Project: https://github.com/ericgio/react-bootstrap-typeahead
|
||||
// Definitions by: Guymestef <https://github.com/Guymestef>
|
||||
// Rajab Shakirov <https://github.com/radziksh>
|
||||
@ -70,9 +70,15 @@ export interface TypeaheadProps<T> {
|
||||
/* Props to be applied directly to the input. onBlur, onChange, onFocus, and onKeyDown are ignored. */
|
||||
inputProps?: object;
|
||||
|
||||
/* Bootstrap 4 only. Adds the `is-invalid` classname to the `form-control`. */
|
||||
isInvalid?: boolean;
|
||||
|
||||
/* Indicate whether an asynchronous data fetch is happening. */
|
||||
isLoading?: boolean;
|
||||
|
||||
/* Bootstrap 4 only. Adds the `is-valid` classname to the `form-control`. */
|
||||
isValid?: boolean;
|
||||
|
||||
/* Specify which option key to use for display or a render function. By default, the selector will use the label key. */
|
||||
labelKey?: string | ((option: T | string) => string);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user