Skip to content

Latest commit

 

History

History
 
 

gatsby-material-ui-components

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

gatsby-material-ui-components

Material-UI components for Gatsby

The components are part of the gatsby-theme-material-ui

Install

// with npm
npm install gatsby-material-ui-components @material-ui/core

// with yarn
yarn add gatsby-material-ui-components @material-ui/core

How to use

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";

License

MIT