Skip to content

Commit

Permalink
better color replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
nirtamir2 committed May 8, 2021
1 parent a77d4c2 commit 715b3b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/index.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const svgCode = `
`

svgr(svgCode)
svgr(svgCode, { icon: true }, { componentName: 'MyComponent' })
svgr(svgCode, { icon: false }, { componentName: 'MyComponent' })
svgr(svgCode, { icon: false, memo: true })
svgr(svgCode, undefined, { componentName: 'MyComponent' })
svgr.sync(svgCode, { replaceAttrValues: { '#ccc': 'currentColor' } })
svgr.sync(svgCode, { replaceAttrValues: { '#000': '{props.color}' } })

0 comments on commit 715b3b4

Please sign in to comment.