Skip to content

Instantly share code, notes, and snippets.

@JWLangford
Created July 2, 2021 12:43
Show Gist options
  • Save JWLangford/f4cd6a6cca2a4c323c08d0bdbe1b6314 to your computer and use it in GitHub Desktop.
Save JWLangford/f4cd6a6cca2a4c323c08d0bdbe1b6314 to your computer and use it in GitHub Desktop.
import { Box, Button as MuiButton } from "@material-ui/core"
import * as React from "react"
interface IProps {
label: string
color: string
}
export function Button(props: IProps) {
const { label, color } = props
return (
<Box>
<MuiButton style={{ color: color }} data-testid="button">
{label}
</MuiButton>
</Box>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment