import React, { FC, ButtonHTMLAttributes, AnchorHTMLAttributes } from "react"; declare type ButtonSize = "lg" | "sm"; declare type ButtonType = "primary" | "default" | "danger" | "link"; interface BaseButtonProps { className?: string; /**设置Button的禁用*/ disabled?: boolean; /**设置Button的尺寸*/ size?: ButtonSize; /**设置Button的类型*/ btnType?: ButtonType; children: React.ReactNode; /**设置Button链接地址*/ href?: string; } /** * 这是我们的第一个Button组件 * ## Button header * ~~~js * import { Button } from 'vikingship' * ~~~ */ export declare const Button: FC; declare type NativeButtonProps = BaseButtonProps & ButtonHTMLAttributes; declare type AnchorButtonProps = BaseButtonProps & AnchorHTMLAttributes; export declare type ButtonProps = Partial; export default Button;