mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
30 lines
896 B
TypeScript
30 lines
896 B
TypeScript
// Type definitions for react-flags-select 1.1
|
|
// Project: https://github.com/ekwonye-richard/react-flags-select#readme
|
|
// Definitions by: Artur Sianiuk <https://github.com/senukartur>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
import { Component } from 'react';
|
|
|
|
interface Props {
|
|
countries?: string[];
|
|
blackList?: boolean;
|
|
customLabels?: {[propName: string]: string};
|
|
selectedSize?: number;
|
|
optionsSize?: number;
|
|
defaultCountry?: string;
|
|
placeholder?: string;
|
|
className?: string;
|
|
showSelectedLabel?: boolean;
|
|
showOptionLabel?: boolean;
|
|
alignOptions?: string;
|
|
onSelect?: (countryCode: string) => void;
|
|
disabled?: boolean;
|
|
searchable?: boolean;
|
|
}
|
|
declare class ReactFlagsSelect extends Component<Props> {
|
|
updateSelected(countryCode: string): void;
|
|
}
|
|
|
|
export default ReactFlagsSelect;
|