UNPKG

seti-ramesesv1

Version:

Reusable components and context for Next.js apps

21 lines (20 loc) 691 B
import React from "react"; type ColorKey = "primary" | "secondary" | "success" | "error"; type Size = "small" | "medium" | "large"; export type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & { variant?: "text" | "contained" | "outlined" | "custom"; color?: ColorKey; size?: Size; textSize?: number; fontWeight?: string; textTransform?: "uppercase" | "capitalize" | "lowercase" | "none"; href?: string; startIcon?: React.ReactNode; endIcon?: React.ReactNode; fullWidth?: boolean; isLoading?: boolean; loadingText?: string; loadingIcon?: React.ReactNode; }; declare const Button: React.FC<ButtonProps>; export default Button;