Skip to content

Commit

Permalink
better color replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
nirtamir2 authored and gregberge committed Sep 19, 2021
1 parent 0871f21 commit 12cb449
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 12cb449

Please sign in to comment.