@politico/interactive-style-material
v0.0.4
Published
Components to add a POLITICO flare to [Material UI](https://material-ui.com/getting-started/installation/).
Downloads
6
Maintainers
Keywords
Readme
@politico/module_material
Components to add a POLITICO flare to Material UI.
Quick Start
Installation:
$ yarn add https://github.com/The-Politico/module_material
Import only what you need:
import { ThemeProvider } from '@politico/interactive-style-material';
Use it in your component:
import { ThemeProvider } from '@politico/interactive-style-material';
import Button from '@material-ui/core/Button';
const MyComponent = () => (
<ThemeProvider>
<Button color='primary'>Primary</Button>
<Button color='secondary'>Secondary</Button>
</ThemeProvider>
)
Development
Clone Repo:
$ git clone https://github.com/The-Politico/module_material
Install dependencies:
$ yarn
Start development server:
$ yarn start
Build assets:
$ yarn build
Publish:
$ git commit -m 'build message'.
$ git push origin master
©2019 POLITICO