stofli-ui
Version:
Biblioteca moderna de componentes UI para React con Tailwind CSS y Framer Motion
29 lines (26 loc) • 990 B
TypeScript
import React from 'react';
interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onDrag"> {
variant?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" | "outline" | "ghost" | "link";
size?: "xs" | "sm" | "md" | "lg" | "xl" | "icon";
radius?: "none" | "sm" | "md" | "lg" | "full";
fullWidth?: boolean;
withRing?: boolean;
isLoading?: boolean;
leftIcon?: React.ReactNode;
rightIcon?: React.ReactNode;
withArrow?: boolean;
withRipple?: boolean;
rippleColor?: string;
className?: string;
rippleClassName?: string;
loaderClassName?: string;
leftIconClassName?: string;
rightIconClassName?: string;
contentClassName?: string;
arrowClassName?: string;
loadingText?: string;
ariaLabel?: string;
}
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
export { Button as default };
export type { ButtonProps };