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.
17 lines
568 B
17 lines
568 B
import { ButtonHTMLAttributes } from 'react';
|
|
|
|
export default function SuccessButton({ className = '', disabled, children, ...props }: ButtonHTMLAttributes<HTMLButtonElement>) {
|
|
return (
|
|
<button
|
|
{...props}
|
|
className={
|
|
`flex items-center btn bg-success-main outline-none text-white hover:bg-success-hover active:bg-success-pressed ${
|
|
disabled && 'opacity-25'
|
|
} ` + className
|
|
}
|
|
disabled={disabled}
|
|
>
|
|
{children}
|
|
</button>
|
|
);
|
|
}
|