CL

Cli

@svgr/cli

SVGR command line.

Icons
svgr
svg
react
cli
@svgr/cli
Icons
javascript
npm
frontend
open source
Stars
287
Weekly
709k
Open issues
4
Bundle
~25 kB

Installation

npm install @svgr/cli

Code example

import { Star } from "@svgr/cli";

export function Example() {
  return <Star size={24} />;
}

Pros & cons

Pros

  • Actively maintained by Greg Bergé
  • 709k weekly downloads. Battle tested
  • MIT licensed

Considerations

  • Adds roughly ~25 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 4 open issues on GitHub

FAQs

Alternatives & similar libraries