@hireology/molecules
v2.2.1
Published
Hireology's Component Library
Downloads
120
Readme
Molecules
Hireology's component library
Installation
Molecules is available as an npm package.
npm i @hireology/molecules --save
or if you prefer Yarn
yarn add @hireology/molecules
Usage
import { Button } from '@hireology/molecules';
import '@hireology/molecules/dist/molecules.css';
ReactDOM.render(<Button>Button</Button>, mountNode);
NOTE: molecules assumes you already have Font Awesome available in your project
Documentation
To view the components and their, visit our storybook.
Development
Develop locally with Storybook:
$ git clone [email protected]:Hireology/molecules.git
$ cd molecules
$ npm install
$ npm run storybook
Each commit to dev
will automatically deploy storybook.
You can view a preview of the deploy in your PR by clicking the details button in this build step:
Testing
Run tests locally: npm run test
Run test coverage: npm run test-coverage
Expected Component Directory Structure
When you add a new component, it should follow the below directory structure:
/NewComponent
index.js - export default from NewComponent.jsx
NewComponent.jsx - component code
NewComponent-test.jsx - test file
newComponent.scss - stylesheet
newComponent.stories.jsx - storybook configuration