mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
21 lines
456 B
TypeScript
21 lines
456 B
TypeScript
import * as React from 'react';
|
|
|
|
interface Props {
|
|
children: any;
|
|
onClick(e: React.FormEvent): void;
|
|
className?: string;
|
|
outline?: boolean;
|
|
disabled?: boolean;
|
|
}
|
|
|
|
const Button = ({ children, onClick, className = '', outline = false, disabled = false}: Props) => (
|
|
<button
|
|
onClick={onClick}
|
|
className={`${className} btn${outline ? 'Outline' : ''}Primary`}
|
|
disabled={disabled}
|
|
>
|
|
{children}
|
|
</button>
|
|
);
|
|
|
|
export default Button; |