Installation
npm install --save @types/react-flags-select
Summary
This package contains type definitions for react-flags-select (https://github.com/ekwonye-richard/react-flags-select#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-flags-select.
import { Component } from 'react';
interface Props {
countries?: string[] | undefined;
blackList?: boolean | undefined;
customLabels?: {[propName: string]: string} | undefined;
selectedSize?: number | undefined;
optionsSize?: number | undefined;
defaultCountry?: string | undefined;
placeholder?: string | undefined;
className?: string | undefined;
showSelectedLabel?: boolean | undefined;
showOptionLabel?: boolean | undefined;
alignOptions?: string | undefined;
onSelect?: ((countryCode: string) => void) | undefined;
disabled?: boolean | undefined;
searchable?: boolean | undefined;
}
declare class ReactFlagsSelect extends Component<Props> {
updateSelected(countryCode: string): void;
}
export default ReactFlagsSelect;
Additional Details
- Last updated: Thu, 08 Jul 2021 20:20:40 GMT
- Dependencies: @types/react
- Global values: none
Credits
These definitions were written by Artur Sianiuk.