mc-components aims to provide primitive components to build user interfaces in MasterClass
yarn add mc-components
or npm install mc-components --save
- Import MasterClass Components Stylesheet in your styles.scss file
@import '../node_modules/mc-components/lib/styles/index';
- Import a component
import { Button } from 'mc-components'
const Container = () =>
<Button primary>Hello</Button>
- Clone the repository
- Install dependencies:
yarn
- Start the storybook:
yarn storybook
All documentation is handled in storybook. To deploy a new version of the styleguide, run the following command from the root directory:
npm run deploy-storybook