///
import { ExtractThemeAttributes, Theme } from '@sergiogc9/react-ui-theme';
import { ExtendedFlexComponent, ExtendedFlexProps } from '../types';
type Props = {
/**
* The size of the button.
*/
readonly aspectSize?: ExtractThemeAttributes['ButtonAspectSize'];
/**
* If true, the button is disabled
*/
readonly isDisabled?: boolean;
/**
* If true, a loader spinner is shown
*/
readonly isLoading?: boolean;
/**
* The variant type of the button
*/
readonly variant?: ExtractThemeAttributes['ButtonVariant'];
};
export interface StyledProps {
hasIcon: 'left' | 'right' | false;
}
type ButtonProps = ExtendedFlexProps;
type ButtonComponent = ExtendedFlexComponent;
type StyledButtonProps = ButtonProps & StyledProps;
type StyledButtonComponent = ExtendedFlexComponent;
export { ButtonComponent, ButtonProps, StyledButtonComponent, StyledButtonProps };