All files / src/components Button.tsx

100% Statements 1/1
100% Branches 1/1
100% Functions 1/1
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11      303x              
import type { ComponentProps } from 'react'
 
export function Button({ className = '', ...props }: ComponentProps<'button'>) {
	return (
		<button
			className={`px-4 py-2 bg-orange-500 dark:bg-orange-700 text-white rounded cursor-pointer transition-transform duration-100 hover:scale-98 disabled:opacity-50 ${className}`}
			{...props}
		/>
	)
}