forked from fraserxu/react-dropdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
34 lines (32 loc) · 852 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
declare module "react-dropdown" {
import * as React from "react";
export interface Option {
label: React.ReactNode;
value: string;
className?: string;
}
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;
}