Material-UI components for Gatsby
The components are part of the gatsby-theme-material-ui
// with npm
npm install gatsby-material-ui-components @material-ui/core
// with yarn
yarn add gatsby-material-ui-components @material-ui/core
import React from "react";
import { Typography } from "@material-ui/core";
//import { Link } from "gatsby"
import { Link } from "gatsby-material-ui-components";
const Page = () => (
<div>
<Typography>
Check out my <Link to="/blog">blog</Link>!
</Typography>
</div>
);
export default Page;
The following components have also been adapted for use with Gatsby:
import {
BottomNavigationAction,
Button,
CardActionArea,
Fab,
IconButton,
Link,
} from "gatsby-material-ui-components";