1.0.2 • Published 5 years ago

@jetblack/mui-svg-shapes v1.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 years ago

@jetblack/mui-svg-shapes

An SVG shape library for material ui react.

Usage

First create the react app.

~$ npx create-react-app my-app
~$ cd my-app
~/my-app$

Then add the package.

~/my-app$ npm install @jetblack/mui-svg-shapes

Change the src/App.js to have the following content:

import React, { Component } from 'react'
import { withStyles } from '@material-ui/core/styles'
import Svg from '@jetblack/mui-svg-shapes'
import Circle from '@jetblack/mui-svg-shapes'

const styles = theme => ({
})

class App extends Component {
  render() {
    return (
      <Svg width={800} height={800}>
        <Circle cx={50} cy={50} r={50} />
      </Svg>
    )
  }
}

export default withStyles(styles)(App)