UNPKG

flashcardui

Version:

> UI library for flash card application

21 lines (20 loc) 858 B
import { HTMLAttributes, MouseEventHandler } from 'react'; export interface ButtonProps extends HTMLAttributes<HTMLButtonElement> { /** Choose the size of a button */ size?: 'small' | 'medium' | 'large' | 'fullWidth'; /** Provide a text for the button */ label: string; onClick?: MouseEventHandler<HTMLButtonElement>; /** Choose your type of button */ buttonType?: 'contained' | 'text' | 'outlined'; /** Provide a color for the hover */ hover?: string; /** Disable button */ disabled?: boolean; /** Provide a color for the button */ color?: string; /** Rounded button */ rounded?: boolean; } /** This is your favorite button */ export declare const Button: ({ disabled, size, buttonType, label, hover, rounded, onClick, color, children, ...props }: ButtonProps) => JSX.Element;