Sha256: ddf89a64f1405ce86055a435321f91ef81aabe1ffd42322c4f1af1286b00d8ac

Contents?: true

Size: 909 Bytes

Versions: 5

Compression:

Stored size: 909 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

5 entries across 5 versions & 1 rubygems

Version Path
kaze-0.5.0 stubs/inertia-react-ts/app/javascript/Components/SecondaryButton.tsx
kaze-0.4.0 stubs/inertia-react-ts/app/javascript/Components/SecondaryButton.tsx
kaze-0.3.0 stubs/inertia-react-ts/app/javascript/Components/SecondaryButton.tsx
kaze-0.2.0 stubs/inertia-react-ts/app/javascript/Components/SecondaryButton.tsx
kaze-0.1.0 stubs/inertia-react-ts/app/javascript/Components/SecondaryButton.tsx