Check out our documentation website.
# with npm
npm install tailor-ui
# with yarn
yarn add tailor-ui
Here is a quick example to get you started, it's all you need:
import React from 'react';
import ReactDOM from 'react-dom';
import { Button, UIProvider } from 'tailor-ui';
const App = () => (
<UIProvider>
<Button>Hello World</Button>
</UIProvider>
);
ReactDOM.render(<App />, document.querySelector('#root'));
git clone git@github.com:Yoctol/tailor-ui.git
First, open the terminal to watch the file changing and do the type checking:
cd tailor-ui
yarn watch
And then, open another tab to run the project:
cd tailor-ui
yarn start
- Send PR to
develop
branch during development. - When you want to release the version, merge
develop
branch intomaster
branch, and thensematic release
will automatically release new version on CI.- Make sure Environment Variables on CircleCI are setup correctly.
GH_TOKEN
need to haverepo
scope andNPM_TOKEN
need to have access totailor-ui
package.
- Make sure Environment Variables on CircleCI are setup correctly.
- After new version released, merge
master
back todevelop
.