@defisaver/components
v0.0.17
Published
Component pack used in DeFi Saver projects
Downloads
374
Keywords
Readme
DeFi Saver UI Components
Component pack used in DeFi Saver projects
Development
All components need to be in ./src/components/...
with index.js
file for exports.
Both css and scss can be used for styles.
To test the components, create a story such as the example in Test.stories.js
.
After creating the story run npm run storybook
script to view the components. If using node 17+, the legacy option will be required: NODE_OPTIONS=--openssl-legacy-provider npm run storybook
.
To build the package for publishing run npm run build-lib
. JS code will be in the ./dist/index.js
file and style code will be put in ./dist/bundle.css
file.