React component library for live component demo
This repository provides a collection of React components, based on Carbon Components, to be used in its live component demo.
> npm install -S carbon-components carbon-components-react carbon-addons-cloud carbon-icons classnames markdown-it react react-copy-to-clipboard react-dom react-ga
-
These components require the use of a module bundler, e.g. Webpack in your project. See our
webpack.config.js
for an example configuration. -
Components do not import any of the styles themselves, use your Sass tool to bring in
src/components/**/*.scss
.
Please refer to the Contribution Guidelines before starting any work.
We recommend the use of React Storybook for developing components.
-
Start the server:
$ npm run storybook
-
Open browser to
http://localhost:9000/
. -
Develop components in their respective folders (
carbon-addons-website/src/components
). -
Write stories for your components (
carbon-addons-website/src/components/**/*-story.js
).
Please check out our Contribution Guidelines for detailed information on how you can lend a hand.