Check out our documentation website.
# with npm
npm install tailor-ui
# with yarn
yarn add tailor-uiHere 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 [email protected]:Yoctol/tailor-ui.gitFirst, open the terminal to watch the file changing and do the type checking:
cd tailor-ui
yarn watchAnd then, open another tab to run the project:
cd tailor-ui
yarn start- Send PR to
developbranch during development. - When you want to release the version, merge
developbranch intomasterbranch, and thensematic releasewill automatically release new version on CI.- Make sure Environment Variables on CircleCI are setup correctly.
GH_TOKENneed to havereposcope andNPM_TOKENneed to have access totailor-uipackage.
- Make sure Environment Variables on CircleCI are setup correctly.
- After new version released, merge
masterback todevelop.