seti-ramesesv1
Version:
Reusable components and context for Next.js apps
21 lines (20 loc) • 904 B
TypeScript
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: ({ children, className, variant, color, size, textSize, fontWeight, textTransform, href, startIcon, endIcon, fullWidth, isLoading, loadingText, loadingIcon, disabled, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
export default Button;