UNPKG

mainstack-library

Version:

component library for the mainstack frontend task

22 lines (21 loc) 624 B
import React, { ButtonHTMLAttributes, ReactNode } from "react"; declare const variants: { primary: string; secondary: string; ghost: string; }; declare const sizes: { sm: string; md: string; lg: string; }; type VariantType = keyof typeof variants; type SizeType = keyof typeof sizes; export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> { children: ReactNode; isLoading?: boolean; variant?: VariantType; size?: SizeType; } export declare const Button: ({ variant, size, className, children, isLoading, ...props }: ButtonProps) => React.JSX.Element; export {};