项目作者: TaitoUnited

项目描述 :
A collection of reusable and themable React UI components built with styled-components
高级语言: JavaScript
项目地址: git://github.com/TaitoUnited/react-components-kit.git
创建时间: 2017-03-20T09:20:18Z
项目社区:https://github.com/TaitoUnited/react-components-kit

开源协议:

下载


react-components-kit

A collection of reusable and themable React UI components built with styled-components.

travis build
version
MIT License

Install

  1. npm install --save react-components-kit

Component showcase

Live demo available: https://taitounited.github.io/react-components-kit/

You can also test the components locally by cloning this repo and doing the following steps:

  1. cd docs
  2. npm install
  3. npm start

And then open localhost:3000 in a browser.

Usage

  1. import React from 'react';
  2. // Import some components
  3. import { Tooltip, Spinner } from 'react-components-kit';
  4. const Example = () => {
  5. return (
  6. <Tooltip content="Hello World" ></Tooltip>
  7. <Spinner color="tomato" lg ></Spinner>
  8. );
  9. }

Check out the more detailed documentation describing the individual components
in more detail.

Development

In order to get react-components-kit UI components to work in the docs project
you have to link the local npm package by first doing:

  1. npm link

in the root of the project and then cd to /docs and do:

  1. npm link react-components-kit

to add the package to node_modules in docs’ create-react-app project.

Then you can start developing and continuously building your changes by running:

  1. npm run watch:build:lib

This way you can easily test your changes in the docs pages.

After done with changes add them with:

  1. git add .

and commit with

  1. npm run commit

which uses commitizen
helper to format the commit messages partly based on these rules.

This way semantic-release
knows how to bumb up the version number correctly when we finally push the code to master and Travis CI builds our package.

Do not force push to the repo, since that may break semantic-release.

You can see the Travis CI builds here