You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
427 B
JavaScript
18 lines
427 B
JavaScript
import React from 'react';
|
|
|
|
export default function PrimaryButton({ type = 'submit', className = '', processing, children }) {
|
|
return (
|
|
<button
|
|
type={type}
|
|
className={
|
|
`btn btn-primary ${
|
|
processing && 'opacity-25'
|
|
} ` + className
|
|
}
|
|
disabled={processing}
|
|
>
|
|
{children}
|
|
</button>
|
|
);
|
|
}
|