UNPKG

640 BTypeScriptView Raw
1import * as React from 'react';
2
3import SafeAnchor, { SafeAnchorProps } from './SafeAnchor';
4
5import {
6 BsPrefixComponent,
7 SelectCallback,
8 BsPrefixComponentClass,
9} from './helpers';
10
11export interface DropdownItemProps {
12 active?: boolean;
13 disabled?: boolean;
14 eventKey?: string;
15 href?: string;
16 onClick?: React.MouseEventHandler<this>;
17 onSelect?: SelectCallback;
18}
19
20declare class DropdownItem<
21 // Need to use BsPrefixComponentClass to get proper type checking.
22 As extends React.ElementType = BsPrefixComponentClass<'a', SafeAnchorProps>
23> extends BsPrefixComponent<As, DropdownItemProps> {}
24
25export default DropdownItem;