import { MouseEvent } from 'react'; export interface ButtonProps { children?: any; /** * Button style * * @default ''' **/ variant?: string; /** * Allows customised styling to be added * * @default '' **/ className?: string; /** * onClick handler * * @default event => {} **/ onClick?: (event: MouseEvent) => void; /** * Shows Loading state * * @default false **/ loading?: boolean; /** * Disables onclick * * @default false **/ disabled?: boolean | undefined; /** * Browser Tab Target * * @default "_self" **/ target?: string; /** * Button type * * @default "submit" **/ type?: 'button' | 'submit' | 'reset' | undefined; /** * Transparent background on button * * @default false **/ transparent?: boolean; } export interface Theme { border: string; textColor: string; backgroundColor: string; textDecoration: string; textTransform: string; fontFamily: string; fontWeight: string; borderWidth: string; borderStyle: string; borderImage: string; backgroundColorHover: string; borderImageHover: string; borderHover: string; textColorHover: string; spanBackground: string; spanColor: string; spanMixBlendMode: string; colorCustomFontGradient: string; spanMixBlendModeBefore: string; transition: string; } export interface ButtonThemeProps extends ButtonProps { theme: Theme; }