UNPKG

design-system-simplefi

Version:

Design System for SimpleFi Applications

25 lines (24 loc) 977 B
import React from 'react'; import { To } from 'history'; import { SpacingSizeValue } from '../../types/spacing.types'; import { Types as IconTypes, SFIIcons } from '../Icon/Icon.types'; import { ButtonColors, ButtonSizes, ButtonVariants } from './Button.enums'; export declare type Variants = typeof ButtonVariants[keyof typeof ButtonVariants]; export declare type Sizes = typeof ButtonSizes[keyof typeof ButtonSizes]; export declare type Colors = typeof ButtonColors[keyof typeof ButtonColors]; export interface ButtonProps extends Omit<React.HTMLProps<HTMLButtonElement>, 'size' | 'as'> { variant?: Variants; size?: Sizes; color?: Colors; onClick?: React.MouseEventHandler; isDisabled?: boolean; isLoading?: boolean; isExpanded?: boolean; margin?: SpacingSizeValue; href?: string; to?: To; className?: string; iconName?: SFIIcons | string; loadingText?: string; iconType?: IconTypes | string; }