/** * Button Component - Lynx 版 MUI Button * 100% 一比一复刻 MUI Button * * 对应 MUI: packages/mui-material/src/Button/Button.js */ import './Button.css'; import buttonClasses, { getButtonUtilityClass } from './buttonClasses'; export { buttonClasses, getButtonUtilityClass }; export type ButtonVariant = 'text' | 'outlined' | 'contained'; export type ButtonColor = 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning'; export type ButtonSize = 'small' | 'medium' | 'large'; export type ButtonLoadingPosition = 'start' | 'end' | 'center'; export interface ButtonProps { /** 子元素 */ children?: any; /** 自定义类名 */ className?: string; /** 样式类覆盖 */ classes?: Partial; /** 颜色 */ color?: ButtonColor; /** 是否禁用 */ disabled?: boolean; /** 是否禁用阴影 */ disableElevation?: boolean; /** 是否禁用焦点涟漪 */ disableFocusRipple?: boolean; /** 是否禁用涟漪 */ disableRipple?: boolean; /** 结束图标 */ endIcon?: any; /** 焦点可见时的类名 */ focusVisibleClassName?: string; /** 是否占满宽度 */ fullWidth?: boolean; /** 链接地址 */ href?: string; /** ID */ id?: string; /** 是否加载中 */ loading?: boolean | null; /** 加载指示器 */ loadingIndicator?: any; /** 加载指示器位置 */ loadingPosition?: ButtonLoadingPosition; /** 尺寸 */ size?: ButtonSize; /** 开始图标 */ startIcon?: any; /** 内联样式 */ style?: Record; /** sx 属性 */ sx?: Record; /** 按钮类型 */ type?: 'button' | 'submit' | 'reset'; /** 变体 */ variant?: ButtonVariant; /** 点击事件 */ bindtap?: (event?: any) => void; onClick?: (event?: any) => void; } export declare function Button(props: ButtonProps): JSX.Element; export default Button; //# sourceMappingURL=index.d.ts.map