import clsx from 'clsx' export function Button( props: { size?: '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' color?: | 'green' | 'red' | 'blue' | 'indigo' | 'yellow' | 'gray' | 'gradient' | 'gray-white' } & React.ButtonHTMLAttributes ) { const { children, className, size = 'md', color = 'indigo', ...buttonProps // onClick, disabled, type, etc. } = props const sizeClasses = { '2xs': 'px-2 py-1 text-xs', xs: 'px-2.5 py-1.5 text-sm', sm: 'px-3 py-2 text-sm', md: 'px-4 py-2 text-sm', lg: 'px-4 py-2 text-base', xl: 'px-6 py-3 text-base', '2xl': 'px-6 py-3 text-xl', }[size] return ( ) }