Installation
To install via the command line:
Yarn
yarn add @truepill/chp-components
npm
npm install @truepill/chp-components
The package is hosted privately on the Truepill Github Repository so you'll need to connect to it. One way to do that is to create a .npmrc
file at root level and paste the following snippet:
@truepill:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:\_authToken=<NPM_TOKEN>
Replace <NPM_TOKEN>
. You can find information how to create the token here.
Note
chp-components has a peer dependency on @truepill/react-capsule. It must also be installed for the components to work.
Usage
Refer to the individual component documentation pages for details on usage.