katoikia-app/web-ui/web-react/node_modules/primereact/button/button.d.ts

21 lines
702 B
TypeScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
import * as React from 'react';
import TooltipOptions from '../tooltip/tooltipoptions';
import {IconType} from "../utils";
type ButtonPositionType = 'top' | 'bottom' | 'left' | 'right';
export interface ButtonProps extends Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, 'disabled'|'ref'> {
label?: string;
icon?: IconType<ButtonProps>;
iconPos?: ButtonPositionType;
badge?: string;
badgeClassName?: string;
tooltip?: string;
tooltipOptions?: TooltipOptions;
disabled?: boolean;
loading?: boolean;
loadingIcon?: IconType<ButtonProps>;
}
export declare class Button extends React.Component<ButtonProps, any> { }