GoScrobble/web/node_modules/reactstrap/es/Dropdown.d.ts

35 lines
899 B
TypeScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
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;