React UI library for Segment
Presentational React Components with a coherent API for developers
- Powerful component API
- Dedicated UI engineering workflow
- Documentation with React Storybook
- Powerful prototyping tool
$ yarn add @segment/react-ui-library
React Storybook and Documentation
React Storybook will be used as a reference and documentation for most components.
yarn run storybook
Open http://localhost:9009/ to see the Storybook
react-ui-library should be fairly straightforward.
Install and then import whatever components you need:
import React from 'react'import ReactDOM from 'react-dom'importButtonfrom '@segment/react-ui-library'ReactDOM
Read the Storybook for more documentation.
Releasing a new version
make release on the
master branch and follow the instructions. Avoid breaking changes in minor and patch releases.
Creating new components
- Create a new component in
- Create a new test for your component
- Create a new story in
/src/stories/Comp.jswith documentation and examples