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.
monitor-doc/resources/js/Components/PrimaryButton.jsx

18 lines
427 B
React

2 years ago
import React from 'react';
export default function PrimaryButton({ type = 'submit', className = '', processing, children }) {
return (
<button
type={type}
className={
2 years ago
`btn btn-primary ${
2 years ago
processing && 'opacity-25'
} ` + className
}
disabled={processing}
>
{children}
</button>
);
}