sass setup + stole github button css >:)
This commit is contained in:
13
src/layout/components/Button.tsx
Normal file
13
src/layout/components/Button.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import React, {FunctionComponent} from "react";
|
||||
|
||||
interface Props {
|
||||
className?: string
|
||||
onClick?: () => void
|
||||
children?: React.ReactNode
|
||||
}
|
||||
|
||||
export const GHButton: FunctionComponent<Props> = ({className, onClick, children}) => {
|
||||
return (
|
||||
<span className={`gh-button ${className}`} onClick={onClick}>{children}</span>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user