Optimizely has two sets of React components, more generalized OUI components built for a wide range of content, and application-specific components which tend to be more complex and less generalized for reuse.
git clone https://github.com/optimizely/oui.git && cd oui && yarn install
yarn storybook- Compile CSS/JS and view React components
Once OUI is added to your project, simply import the components you need:
import React from 'react'; import Button from 'optimizely-oui'; ... <Button style="outline"> Edit Experiment </Button>
Storybook is a UI development environment for components. With it, you can: