import {forwardRef, MouseEventHandler, ReactNode} from 'react'; import cx from 'classnames'; import './style.scss'; /** * * @since 3.0.0 */ export type ButtonProps = { variant?: 'primary' | 'secondary' | 'danger'; size?: 'small' | 'large'; type?: 'button' | 'reset' | 'submit'; children: ReactNode; onClick?: MouseEventHandler; disabled?: boolean; className?: string; [x: string]: any; }; const Button = forwardRef( ({children, type = 'button', variant = 'primary', size = 'small', disabled = false, className, ...props}, ref) => ( ) ); export default Button;