1
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
import * as React from 'react';
|
||||
import type { ButtonHTMLType, ButtonProps } from '../button';
|
||||
import type { ButtonGroupProps } from '../button/ButtonGroup';
|
||||
import type { DropdownProps } from './dropdown';
|
||||
export type DropdownButtonType = 'default' | 'primary' | 'dashed' | 'link' | 'text';
|
||||
export interface DropdownButtonProps extends ButtonGroupProps, DropdownProps {
|
||||
type?: DropdownButtonType;
|
||||
htmlType?: ButtonHTMLType;
|
||||
danger?: boolean;
|
||||
disabled?: boolean;
|
||||
loading?: ButtonProps['loading'];
|
||||
onClick?: React.MouseEventHandler<HTMLElement>;
|
||||
icon?: React.ReactNode;
|
||||
href?: string;
|
||||
children?: React.ReactNode;
|
||||
title?: string;
|
||||
buttonsRender?: (buttons: React.ReactNode[]) => React.ReactNode[];
|
||||
}
|
||||
type CompoundedComponent = React.FC<DropdownButtonProps> & {};
|
||||
/** @deprecated Please use Space.Compact + Dropdown + Button instead */
|
||||
declare const DropdownButton: CompoundedComponent;
|
||||
export default DropdownButton;
|
||||
Reference in New Issue
Block a user