Refactor CSS pt. 3 (semantically @extend Bootstrap)

This commit is contained in:
riggraz
2019-09-16 12:22:30 +02:00
parent 8d297a897e
commit 41795ce963
16 changed files with 199 additions and 70 deletions

View File

@@ -0,0 +1,20 @@
import * as React from 'react';
import { FormEvent } from 'react';
interface Props {
children: string;
onClick(e: FormEvent): void;
className?: string;
outline?: boolean;
}
const Button = ({ children, onClick, className = '', outline = false}: Props) => (
<button
onClick={onClick}
className={`${className} btn btn-${outline ? 'outline-' : ''}dark my-2`}
>
{children}
</button>
);
export default Button;