import { FC, ButtonHTMLAttributes, AnchorHTMLAttributes } from 'react'; /** * 页面中最常用的的按钮元素,适合于完成特定的交互,支持 HTML button 和 a 链接 的所有属性 * ### 引用方法 * * ```javascript * import { Button } from 'vikingship' * ``` */ type ButtonType = 'primary' | 'default' | 'danger' | 'link'; type ButtonSize = 'lg' | 'sm'; interface BaseButtonProps { size: ButtonSize; disabled?: boolean; btnType?: ButtonType; className?: string; children?: string; } type NativeButtonProps = BaseButtonProps & ButtonHTMLAttributes; type AnchorButtonProps = BaseButtonProps & AnchorHTMLAttributes; export type ButtonProps = Partial; export declare const Button: FC; export default Button;