first commit
This commit is contained in:
46
frontend/node_modules/antd/lib/button/button.d.ts
generated
vendored
Normal file
46
frontend/node_modules/antd/lib/button/button.d.ts
generated
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
import React from 'react';
|
||||
import type { SizeType } from '../config-provider/SizeContext';
|
||||
import Group from './button-group';
|
||||
import type { ButtonColorType, ButtonHTMLType, ButtonShape, ButtonType, ButtonVariantType } from './buttonHelpers';
|
||||
export type LegacyButtonType = ButtonType | 'danger';
|
||||
export interface BaseButtonProps {
|
||||
type?: ButtonType;
|
||||
color?: ButtonColorType;
|
||||
variant?: ButtonVariantType;
|
||||
icon?: React.ReactNode;
|
||||
iconPosition?: 'start' | 'end';
|
||||
shape?: ButtonShape;
|
||||
size?: SizeType;
|
||||
disabled?: boolean;
|
||||
loading?: boolean | {
|
||||
delay?: number;
|
||||
icon?: React.ReactNode;
|
||||
};
|
||||
prefixCls?: string;
|
||||
className?: string;
|
||||
rootClassName?: string;
|
||||
ghost?: boolean;
|
||||
danger?: boolean;
|
||||
block?: boolean;
|
||||
children?: React.ReactNode;
|
||||
[key: `data-${string}`]: string;
|
||||
classNames?: {
|
||||
icon: string;
|
||||
};
|
||||
styles?: {
|
||||
icon: React.CSSProperties;
|
||||
};
|
||||
}
|
||||
type MergedHTMLAttributes = Omit<React.HTMLAttributes<HTMLElement> & React.ButtonHTMLAttributes<HTMLElement> & React.AnchorHTMLAttributes<HTMLElement>, 'type' | 'color'>;
|
||||
export interface ButtonProps extends BaseButtonProps, MergedHTMLAttributes {
|
||||
href?: string;
|
||||
htmlType?: ButtonHTMLType;
|
||||
autoInsertSpace?: boolean;
|
||||
}
|
||||
declare const InternalCompoundedButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
||||
type CompoundedComponent = typeof InternalCompoundedButton & {
|
||||
/** @deprecated Please use `Space.Compact` */
|
||||
Group: typeof Group;
|
||||
};
|
||||
declare const Button: CompoundedComponent;
|
||||
export default Button;
|
||||
Reference in New Issue
Block a user