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
420 B
React
18 lines
420 B
React
3 years ago
|
import React from 'react';
|
||
|
|
||
|
export default function Button({ type = 'submit', className = '', processing, children }) {
|
||
|
return (
|
||
|
<button
|
||
|
type={type}
|
||
|
className={
|
||
3 years ago
|
`btn btn-primary ${
|
||
3 years ago
|
processing && 'opacity-25'
|
||
|
} ` + className
|
||
|
}
|
||
|
disabled={processing}
|
||
|
>
|
||
|
{children}
|
||
|
</button>
|
||
|
);
|
||
|
}
|