Files
old-v2-frontend/src/components/Button.js

23 lines
549 B
JavaScript
Raw Normal View History

2018-06-30 14:56:04 +02:00
import React from 'react'
import Link from 'gatsby-link'
2018-07-04 20:37:35 +02:00
let defaultClasses =
'px-6 py-3 leading-none inline-block text-sm no-underline uppercase'
let standardBtn = 'border hover:bg-teal hover:text-white hover:border-teal'
let filledBtn = 'text-grey-lightest bg-grey-darkest hover:bg-teal'
const Button = ({ ...props }) => (
2018-07-04 20:37:35 +02:00
<Link
to={props.url}
className={`${props.standard ? standardBtn : ''} ${
props.filled ? filledBtn : ''
} ${defaultClasses} ${props.classes}`}
>
{props.text}
</Link>
2018-06-30 14:56:04 +02:00
)
2018-07-04 20:37:35 +02:00
export default Button