1 | import * as React from 'react';
|
2 | import type { ButtonProps, ButtonHTMLType } from '../button';
|
3 | import type { ButtonGroupProps } from '../button/button-group';
|
4 | import type { DropdownProps } from './dropdown';
|
5 | export type DropdownButtonType = 'default' | 'primary' | 'dashed' | 'link' | 'text';
|
6 | export 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 | }
|
19 | type CompoundedComponent = React.FC<DropdownButtonProps> & {};
|
20 | declare const DropdownButton: CompoundedComponent;
|
21 | export default DropdownButton;
|