Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using array/object with multiple SVGs #10

Open
gregbia opened this issue Jan 2, 2019 · 1 comment
Open

Using array/object with multiple SVGs #10

gregbia opened this issue Jan 2, 2019 · 1 comment

Comments

@gregbia
Copy link

gregbia commented Jan 2, 2019

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?

@gregbia gregbia changed the title Adding SVGs Using array/object with multiple SVGs Jan 2, 2019
@swashata
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants