You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
470 B

  1. import { ButtonHTMLAttributes } from 'react';
  2. export default function ModalButton({ className = '', disabled, children, ...props }: ButtonHTMLAttributes<HTMLButtonElement>) {
  3. return (
  4. <button
  5. {...props}
  6. className={
  7. `mt-4 w-full btn outline-none text-lg ${disabled && 'opacity-25'} ` +
  8. className
  9. }
  10. disabled={disabled}
  11. >
  12. {children}
  13. </button>
  14. );
  15. }