This is the home for all of PF9's UI React components
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Transpiles TypeScript source code to JavaScript. These files are stored in the built
folder
- In your app root directory, run
yarn add https://github.com/platform9/ui-components
- Import the components you want to use from the
built
folder. Ex.import Theme from 'pf9-ui-components/built/theme-manager/themes/model'
- If you want to sync your changes from ui-components to your app, run
yarn upgrade pf9-ui-components
- Run
yarn start
to run the app - Make the changes you need to make in the code
- Run
yarn build
- Commit and push your changes to the main branch
- To update your changes in the app that is using this component library, run
yarn upgrade pf9-ui-components
Storybook is used to create an isolated development environment and showcase the components. This helps speed up development as we can control the data / props that are feed into the component.
To see the Storybook just run: