import * as React from 'react'; import { type VariantProps } from 'class-variance-authority'; export declare const sizeMap: { sm: { width: string; height: string; }; base: { width: string; height: string; }; lg: { width: string; height: string; }; }; /** * Button Variants */ declare const buttonVariants: (props?: ({ variant?: "link" | "primary" | "secondary" | "ghost" | null | undefined; size?: "base" | "lg" | "sm" | "icon" | null | undefined; hoverEffect?: "none" | "slide" | null | undefined; state?: "default" | "disabled" | "loading" | null | undefined; } & import("class-variance-authority/types").ClassProp) | undefined) => string; export interface ButtonProps extends React.ButtonHTMLAttributes, VariantProps { /** 设置按钮载入状态 */ loading?: boolean; /** 设置按钮失效状态 */ disabled?: boolean; /** 定义自组件作为父组件的类型, 详细使用方式请参考radix-ui (已作废请勿使用) */ asChild?: boolean; /** 定义自组件作为父组件的类型, 详细使用方式请参考radix-ui */ as?: 'button' | 'a'; href?: string; iconClassName?: string; /** 自定义loading */ spinner?: React.ReactNode; } /** * Button - 按钮 * * @description 可点击的交互式按钮组件,支持多种样式、大小、状态和加载效果 */ declare const Button: React.ForwardRefExoticComponent>; export default Button;