-
Notifications
You must be signed in to change notification settings - Fork 413
Icons
Alex Grin edited this page Oct 22, 2021
·
1 revision
- You'll add new icons to icon-custom.jsx
- Get the text from the image, using the view source in chrome works.
- You will need to convert most svg text to jsx compatible.
- This works really well to transform an svg to jsx
- https://react-svgr.com/playground/
- Be sure to add
width={props.size || '18'}
height={props.size || '16'}
- If necessary, override most
stroke="..."
params with"currentColor"
- Also delete redundant
strokeLinecap= strokeWidth= strokeLinejoin=
attributes if already covered in the main svg tag. - Add the icon constant to constants/icons.js