1.0.0 • Published 6 years ago
clarity-components v1.0.0
clarity-components - A set of components and hocs from ClarityMovement
With storybook integrated, components can be tested on gh-pages by non-developers directly.
Installation
yarn add clarity-components
or
npm install --save clarity-components
Usage
Image
- withImage(Image)
import { Image } from 'clarity-components';
const uploadImage = () => new Promise(resolve => resolve({ url: 'https://img-url' }));
<Image uploadImage={uploadImage} />
withImage
- High order component to provide data and logic
import { withImage } from 'clarity-components';
const MyImage = (props) => <div>{console.log(props)}</div>;
export default withImage(MyImage);
Documentation
With storybook, things below are included in the site:
- online demo
- prop tables
- code examples
- TODO: comments
License
Copyright © 2017, ClarityMovement. Released under the MIT license.
1.0.0
6 years ago
0.9.4
7 years ago
0.9.3
7 years ago
0.9.2
7 years ago
0.9.1
7 years ago
0.9.0
7 years ago
0.8.0
7 years ago
0.7.3
7 years ago
0.7.2
7 years ago
0.7.1
7 years ago
0.7.0
7 years ago
0.6.0
7 years ago
0.5.0
7 years ago
0.4.0
7 years ago
0.3.1
7 years ago
0.3.0
7 years ago
0.2.0
7 years ago
0.1.3
7 years ago
0.1.2
7 years ago
0.1.1
7 years ago
0.1.0
7 years ago
0.0.1
7 years ago