mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 17:35:16 +00:00
35 lines
899 B
TypeScript
35 lines
899 B
TypeScript
import * as React from 'react';
|
|
import { CSSModule } from './index';
|
|
|
|
export type Direction = 'up' | 'down' | 'left' | 'right';
|
|
|
|
export interface DropdownProps extends React.HTMLAttributes<HTMLElement> {
|
|
[key: string]: any;
|
|
a11y?: boolean;
|
|
disabled?: boolean;
|
|
direction?: Direction;
|
|
group?: boolean;
|
|
isOpen?: boolean;
|
|
nav?: boolean;
|
|
active?: boolean;
|
|
addonType?: boolean | 'prepend' | 'append';
|
|
size?: string;
|
|
tag?: React.ElementType;
|
|
toggle?: React.KeyboardEventHandler<any> | React.MouseEventHandler<any>;
|
|
cssModule?: CSSModule;
|
|
inNavbar?: boolean;
|
|
setActiveFromChild?: boolean;
|
|
}
|
|
|
|
export interface UncontrolledDropdownProps extends DropdownProps {
|
|
defaultOpen?: boolean;
|
|
onToggle?: (
|
|
event: React.KeyboardEvent | React.MouseEvent,
|
|
isOpen: boolean
|
|
) => void;
|
|
}
|
|
|
|
declare class Dropdown extends React.Component<DropdownProps> {}
|
|
|
|
export default Dropdown;
|