Unlock Assets
This library isolates the Unlock SVG components for simplicity. Made with create-react-library
Add SVG to /image
, then run the following commands:
-
yarn run svg-2-components
to generate components again -
yarn run build
to build the React components - Add import to
src/components.js
-
yarn run storybook
to debug -
yarn publish
to publish new version!
You can tweak the default viewBox for each image by looking at src/components.js