Quantstamp Component Library and Style Guide
powered by webpack flavored React Styleguidist
How to import into a Next.js project:
NOTE: THIS WILL BE DEPRECATED FOR NPM SOON
From your Next.js project folder
npm i qs-ui-library --save
yarn add qs-ui-library
Then to source the component in your page or top level component
import { MyComponent } from 'qs-ui-library'
|
|
|
<MyComponent someprop="someVal">
How to start locally for development:
(pre-reqs: node/npm, nvm, git)
nvm use
git clone git://github.com/quantstamp/qs-ui-library.git
cd qs-ui-library
npm i
npx styleguidist server
then open http://localhost:6060 in your browser.