UNPKG

886 BTypeScriptView Raw
1import * as React from 'react';
2import type { ButtonProps, ButtonHTMLType } from '../button';
3import type { ButtonGroupProps } from '../button/button-group';
4import type { DropdownProps } from './dropdown';
5export type DropdownButtonType = 'default' | 'primary' | 'dashed' | 'link' | 'text';
6export interface DropdownButtonProps extends ButtonGroupProps, DropdownProps {
7 type?: DropdownButtonType;
8 htmlType?: ButtonHTMLType;
9 danger?: boolean;
10 disabled?: boolean;
11 loading?: ButtonProps['loading'];
12 onClick?: React.MouseEventHandler<HTMLElement>;
13 icon?: React.ReactNode;
14 href?: string;
15 children?: React.ReactNode;
16 title?: string;
17 buttonsRender?: (buttons: React.ReactNode[]) => React.ReactNode[];
18}
19type CompoundedComponent = React.FC<DropdownButtonProps> & {};
20declare const DropdownButton: CompoundedComponent;
21export default DropdownButton;