@douyinfe/semi-ui
Version:
A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.
42 lines (41 loc) • 2.39 kB
TypeScript
import React from 'react';
import { IconButtonProps } from '../iconButton';
export type { ButtonProps as BaseButtonProps, HtmlType, Size, Theme, Type } from './Button';
export type { HorizontalPaddingType } from '../iconButton';
export type { ButtonGroupProps } from './buttonGroup';
export type { SplitButtonGroupProps } from './splitButtonGroup';
export interface ButtonProps extends IconButtonProps {
}
declare class Button extends React.PureComponent<ButtonProps> {
static __SemiComponentName__: string;
static propTypes: {
iconStyle: import("prop-types").Requireable<object>;
style: import("prop-types").Requireable<object>;
loading: import("prop-types").Requireable<boolean>;
prefixCls: import("prop-types").Requireable<string>;
icon: import("prop-types").Requireable<NonNullable<object | import("prop-types").ReactNodeLike>>;
iconSize: import("prop-types").Requireable<string>;
noHorizontalPadding: import("prop-types").Requireable<NonNullable<string | boolean | any[]>>;
children: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
theme: import("prop-types").Requireable<string>;
iconPosition: import("prop-types").Requireable<"left" | "right">;
className: import("prop-types").Requireable<string>;
onMouseEnter: import("prop-types").Requireable<(...args: any[]) => any>;
onMouseLeave: import("prop-types").Requireable<(...args: any[]) => any>;
disabled: import("prop-types").Requireable<boolean>;
size: import("prop-types").Requireable<"default" | "small" | "large">;
type: import("prop-types").Requireable<"warning" | "primary" | "secondary" | "danger" | "tertiary">;
block: import("prop-types").Requireable<boolean>;
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
onMouseDown: import("prop-types").Requireable<(...args: any[]) => any>;
circle: import("prop-types").Requireable<boolean>;
htmlType: import("prop-types").Requireable<"button" | "reset" | "submit">;
'aria-label': import("prop-types").Requireable<string>;
contentClassName: import("prop-types").Requireable<string>;
};
static elementType: string;
constructor(props?: ButtonProps);
static defaultProps: any;
render(): React.JSX.Element;
}
export default Button;