UNPKG

@bottledbrains/ui

Version:

A React UI library based on Tailwind CSS

13 lines (12 loc) 444 B
import React, { FC } from 'react'; import { CommonControlProps } from '../../types'; declare type ButtonType = 'primary' | 'secondary' | 'link' | 'ghost'; export interface ButtonProps extends CommonControlProps { type?: ButtonType; block?: boolean; square?: boolean; small?: boolean; onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void; } declare const Button: FC<ButtonProps>; export default Button;