import React from 'react'; import { ReactIconProps } from '@groww-tech/icon-store'; import './button.css'; declare class Button extends React.PureComponent { render(): JSX.Element; getIconUI: () => JSX.Element | null; onButtonClick: (e: React.MouseEvent) => void; getComputedStyle: () => { buttonText: string; onClick: (e: React.MouseEvent) => void; buttonType: "Primary" | "Secondary" | "Tertiary"; fixToBottom: boolean; isDisabled: boolean; iconComponent: ((props: ReactIconProps) => JSX.Element) | null; iconPosition: "Left" | "Right"; showLoader: boolean; loadingText: string; children?: React.ReactNode; width: string | number; height: string | number; fontSize: string | number; backgroundColor: string; color: string; }; static defaultProps: DefaultProps; } declare type RequiredProps = { /** * Button contents */ buttonText: string; /** * Optional click handler */ onClick: (e: React.MouseEvent) => void; }; declare type DefaultProps = { width: string | number; height: string | number; buttonType: 'Primary' | 'Secondary' | 'Tertiary'; fixToBottom: boolean; isDisabled: boolean; iconComponent: ((props: ReactIconProps) => JSX.Element) | null; iconPosition: 'Left' | 'Right'; showLoader: boolean; loadingText: string; fontSize: string | number; textColor: string; /** * What background color to use */ backgroundColor: string; }; export declare type Props = RequiredProps & DefaultProps; export default Button;