Skip to content

ranafaraznaru/react-components

 
 

Repository files navigation

React components for Vanilla Framework

CI

This is a collection of components designed to be the way to consume Vanilla Framework when using React.

Storybook contains component docs with usage instructions.

Requirements

Canonical react components currently require that your build is configured with sass-loader (or equivalent), to compile sass.

Install

To use the NPM package do:

yarn add @canonical/react-components

Or if you use NPM:

npm install @canonical/react-components

Issues

Please file any issues at GitHub.

Contributing

You might want to:

Developing locally using this repository

You may wish to link this library directly to your projects while developing locally.

You can do this by cloning this repo to your local workspace;

git clone https://github.com/canonical/react-components

If you then drop into that folder and run;

yarn run link-packages

...this will add this project, react and react-dom to a local yarn registry.

Switching back to the project you are developing, run;

yarn install
yarn link react
yarn link react-dom
yarn link @canonical/react-components

...to pull the linked deps from the local registry. If you now run yarn build-watch in your react-components folder, your project should pick up any changes on refresh or hot module reload.

Note: When you're finished working locally - don't forget to go back and unlink;

cd react-components
yarn run unlink-packages

Related projects

The following projects are related to, or build upon this library:

About

A set of components based on Vanilla Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 94.7%
  • Shell 2.7%
  • JavaScript 1.5%
  • SCSS 0.6%
  • HTML 0.3%
  • Dockerfile 0.1%
  • MDX 0.1%