@scaleflex/icons
v2.10.33
Published
SVG icons as React components
Downloads
54,914
Readme
@scaleflex/icons
SVG icons as React components.
Installation
npm i @scaleflex/icons # react react-dom
yarn add @scaleflex/icons # react react-dom
Make sure to have
react
andreact-dom
installed in your package as they are included in our peer dependencies.
Usage
Every icon present in this package is a pure React component, wrapping plain svg
element.
Each component is exported by default and gives access to the ref
and className
props, as well as standard svg
attributes.
import DownloadIcon from '@scaleflex/icons/download';