README
Get Started
Run storybook:
$ npm i
$ npm run storybook
Navigate to http://localhost:9001 to view your stories. They should automatically update as you develop.
Storybook will pick up any story from the stories.js
file in a component folder.
Build project with components:
$ npm run build
Install by npm:
$ npm install react-independent-components
Usage example:
import React, { Component } from 'react';
import { Icon } from 'react-independent-components';
import './App.css';
class App extends Component {
render() {
return (
<div>
<Icon iconName='phone' fontSize='30px' onClick={() => alert("Works")}/>
</div>
);
}
}
export default App;
/* App.css */
.icon-speed-ops {
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-speed-ops-phone:before {
content: '\2706';
}