react-fonticonpicker
react-fonticonpicker copied to clipboard
Using array/object with multiple SVGs
I have an object with many svg icons:
{
"faAccessibleIcon": {
"prefix": "fab",
"iconName": "accessible-icon",
"icon": [
448,
512,
[],
"f368",
"M423.9 255.8L411 413.1c-3.3 40.7-63.9 35.1-60.6-4.9l10-122.5-41.1 2.3c10.1 20.7 15.8 43.9 15.8 68.5 0 41.2-16.1 78.7-42.3 "
]
},
"faAccusoft": {
"prefix": "fab",
"iconName": "accusoft",
"icon": [
640,
512,
[],
"f369",
"M482.2 372.1C476.5 365.2 250 75 242.3 65.5c-13.7-17.2 0-16.8 19.2-16.9 9.7-.1 106.3-.6 116.5-.6 24.1-.1 28.7.6 38.4 12.8 2.1 2.7 205.1 245.8 207.2 248.3 5.5 6.7"
]
},
/* etc.... */
}
Is it possible to pass that to the FontIconPicker componenent as the icons?
Why not. But then you need to use renderFunc
to create the output yourself.
Check this page https://fonticonpicker.github.io/react-fonticonpicker/examples/
SVG with Custom Render