
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
moblee-icons
Advanced tools
yarn add moblee-icons
import MenuIcon from 'moblee-icons/Menu';
<Menu />
Suppose your icon is going to be called myIcon
.
src
create a new file myIcon.js
;src/Pin.js
to your new file and replace all instances of Pin
to myIcon
;<path>
tag, copy the content of it's d
attribute. This string describes de shape of the icon;myIcon.js
replace d
content with the string you copied from the original SVG;d
, to do so, follow this rule: Enter new lines before letters, commas or spaces (a-Z
, ,
or
), NEVER split numbers and dots (0-9
and .
). Pin.js
is a good example;src/index.js
and add the export: export { default as myIcon } from './myIcon';
. Then sort lines (on Atom use: ⌘+⇧+P
> "Sort Lines: Sort");stories/mobleeIcons.js
and add 'myIcon',
to the array. (in alphabetical order!)That's it!! 🎉
You can now check out your brand new icon on the storybook! 😃
git clone git@gitlab.com:mobLee/icons
cd icons
yarn
git checkout -b feature-nyan-cat
yarn storybook
git add -A . && git commit -m "Add NyanCat icon"
git checkout master
git pull
package.json
versiongit commit -am "vX.X.X"
npm run deploy
git tag vX.X.X
git push && git push --tags
FAQs
mobLee UI components
We found that moblee-icons demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.