UNPKG

zangai-react

Version:
30 lines (29 loc) 1.07 kB
import * as React from 'react'; export interface IButtonProps { atIcon?: string; atType?: 'default' | 'primary' | 'text' | 'success' | 'error' | 'warning' | 'info'; atLoading?: boolean; atShape?: 'circle' | null; atSize?: 'small' | 'large' | 'smaller'; children?: any; onClick?: React.MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>; atHollow?: boolean; databinding?: any; [x: string]: any; } declare const ButtonHTMLTypes: ["submit", "button", "reset"]; export declare type ButtonHTMLType = (typeof ButtonHTMLTypes)[number]; export declare type NativeButtonProps = { htmlType?: ButtonHTMLType; onClick?: React.MouseEventHandler<HTMLButtonElement>; }; export declare class AtButton extends React.Component<IButtonProps> { static defaultProps: IButtonProps; constructor(props: IButtonProps); isIcon(): JSX.Element; isLoading(): JSX.Element; childrenExist(): JSX.Element; handleClick: React.MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>; render(): JSX.Element; } export {};