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

Version Path
kaze-0.18.0 stubs/inertia-react-ts/app/javascript/Components/SecondaryButton.tsx
kaze-0.17.0 stubs/inertia-react-ts/app/javascript/Components/SecondaryButton.tsx
kaze-0.16.0 stubs/inertia-react-ts/app/javascript/Components/SecondaryButton.tsx
kaze-0.15.0 stubs/inertia-react-ts/app/javascript/Components/SecondaryButton.tsx
kaze-0.14.0 stubs/inertia-react-ts/app/javascript/Components/SecondaryButton.tsx
kaze-0.13.0 stubs/inertia-react-ts/app/javascript/Components/SecondaryButton.tsx
kaze-0.12.0 stubs/inertia-react-ts/app/javascript/Components/SecondaryButton.tsx
kaze-0.11.0 stubs/inertia-react-ts/app/javascript/Components/SecondaryButton.tsx
kaze-0.10.0 stubs/inertia-react-ts/app/javascript/Components/SecondaryButton.tsx
kaze-0.9.0 stubs/inertia-react-ts/app/javascript/Components/SecondaryButton.tsx