JetBrains / logos

Other
27 stars 9 forks source link

Generate react components #9

Closed kisenka closed 4 years ago

kisenka commented 4 years ago

This PR introduces React versions of SVG logos which can be used in React applications like so:

import { AppcodeLogo, AppcodeTextLogo } from '@jetbrains/logos';

...

<div>
  <AppcodeLogo />
  <AppcodeTextLogo fill="white" />
</div>
Hypnosphi commented 4 years ago

Why not just use some webpack loader like svgr on app side?

kisenka commented 4 years ago

Why not just use some webpack loader like svgr on app side?

You don't need any setup on project side, this components are transpiled and ready to use. Also SVGs source for this components are optimized with our specific SVGO config, you definitely don't want to repeat it on the project side.

Hypnosphi commented 4 years ago

Released as 1.3.0