clarity-components

1.0.0 • Public • Published
README of starter

If you are here for the starter click above link If you are here for the component library, this is it

Build Status bitHound Score codecov Greenkeeper badge Dependency Status devDependencies Status

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

  1. Image - withImage(Image)
import { Image } from 'clarity-components';

const uploadImage = () => new Promise(resolve => resolve({ url: 'https://img-url' }));
<Image uploadImage={uploadImage} />
  1. 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.

Package Sidebar

Install

npm i clarity-components

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

42.8 kB

Total Files

20

Last publish

Collaborators

  • clarity-dev