-
Notifications
You must be signed in to change notification settings - Fork 251
/
index.d.ts
37 lines (35 loc) · 919 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
declare module "react-dropdown" {
import * as React from "react";
export interface Option {
label: React.ReactNode;
value: string;
className?: string;
data?: {
[dataAttribute: string]: string | number
};
}
export interface Group {
type: "group";
name: string;
items: Option[];
}
export interface ReactDropdownProps {
options: (Group | Option | string)[];
baseClassName?: string;
className?: string;
controlClassName?: string;
placeholderClassName?: string;
menuClassName?: string;
arrowClassName?: string;
disabled?: boolean;
arrowClosed?: React.ReactNode,
arrowOpen?: React.ReactNode,
onChange?: (arg: Option) => void;
onFocus?: (arg: boolean) => void;
value?: Option | string;
placeholder?: String;
}
class ReactDropdown extends React.Component<ReactDropdownProps> {
}
export default ReactDropdown;
}