Sha256: b95a628b78fba5eb1900cf37a2fc57e78185448e20b1acdae227beeef84c7889
Contents?: true
Size: 819 Bytes
Versions: 10
Compression:
Stored size: 819 Bytes
Contents
import { ButtonHTMLAttributes } from 'react' export default function SecondaryButton({ type = 'button', className = '', disabled, children, ...props }: ButtonHTMLAttributes<HTMLButtonElement>) { return ( <button {...props} type={type} className={`inline-flex items-center px-4 py-2 bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-500 rounded-md font-semibold text-xs text-gray-700 dark:text-gray-300 uppercase tracking-widest shadow-sm hover:bg-gray-50 dark:hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 dark:focus:ring-offset-gray-800 disabled:opacity-25 transition ease-in-out duration-150 ${ disabled && 'opacity-25' } ${className}`} disabled={disabled} > {children} </button> ) }
Version data entries
10 entries across 10 versions & 1 rubygems