@js-smart/react-kit
Version:
29 lines (28 loc) • 778 B
TypeScript
import { default as React } from 'react';
import { SxProps, Theme } from '@mui/material';
/**
* Reusable Success Button component properties
*
* @author Pavan Kumar Jadda
* @since 0.3.3
*/
interface Props {
children?: React.ReactNode;
type?: 'button' | 'submit' | 'reset';
name?: string;
loading: boolean;
dataCy?: string;
startIcon?: React.ReactNode;
sx?: SxProps<Theme>;
onClick?: () => void;
variant?: 'text' | 'outlined' | 'contained';
color?: 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
}
/**
* Reusable Success Loading Button
*
* @author Pavan Kumar Jadda
* @since 0.1.0
*/
export declare function LoadingSuccessButton(props: Props): import("react/jsx-runtime").JSX.Element;
export {};