No Description

ayoub 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
ai 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
bi 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
bs 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
cg 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
ci 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
fa 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
fa6 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
fc 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
fi 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
gi 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
go 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
gr 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
hi 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
hi2 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
im 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
io 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
io5 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
lia 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
lib 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
lu 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
md 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
pi 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
ri 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
rx 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
si 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
sl 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
tb 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
tfi 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
ti 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
vsc 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
wi 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
LICENSE 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
README.md 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
index.d.ts 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
index.js 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
index.mjs 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago
package.json 079702df17 Auto COMMIT for build : 7383 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : add all icons 9 months ago

README.md

React Icons

@d3v4pp/svgs

npm

Include popular icons in your React projects easily with @d3v4pp/svgs, which utilizes ES6 imports that allows you to include only the icons that your project is using.

Installation (for standard modern project)

yarn add @d3v4pp/svgs
# or
npm install @d3v4pp/svgs --save

example usage

import { FaBeer } from "@d3v4pp/svgs/fa";

function Question() {
  return (
    <h3>
      Lets go for a <FaBeer />?
    </h3>
  );
}

View the documentation for further usage examples and how to use icons from other packages. NOTE: each Icon package has it's own subfolder under @d3v4pp/svgs you import from.

For example, to use an icon from Material Design, your import would be: import { ICON_NAME } from '@d3v4pp/svgs/md';

Installation (for meteorjs, gatsbyjs, etc)

Note This option has not had a new release for some time. More info https://github.com/@d3v4pp/svgs/@d3v4pp/svgs/issues/593

If your project grows in size, this option is available. This method has the trade-off that it takes a long time to install the package.

yarn add @@d3v4pp/svgs
# or
npm install @@d3v4pp/svgs --save

example usage

import { FaBeer } from "@@d3v4pp/svgs/fa";

function Question() {
  return (
    <h3>
      Lets go for a <FaBeer />?
    </h3>
  );
}

Icons

Icon Library License Version Count
Circum Icons MPL-2.0 license 1.0.0 288
Font Awesome 5 CC BY 4.0 License 5.15.4-3-gafecf2a 1612
Font Awesome 6 CC BY 4.0 License 6.4.2 2025
Ionicons 4 MIT 4.6.3 696
Ionicons 5 MIT 5.5.4 1332
Material Design icons Apache License Version 2.0 4.0.0-90-g1ea21d5429 4341
Typicons CC BY-SA 3.0 2.1.2 336
Github Octicons icons MIT 18.3.0 264
Feather MIT 4.29.1 287
Lucide ISC v4.11.0-15-g7493227d 1215
Game Icons CC BY 3.0 12920d6565 4040
Weather Icons SIL OFL 1.1 2.0.12 219
Devicons MIT 1.8.0 192
Ant Design Icons MIT 4.3.1 789
Bootstrap Icons MIT 1.11.1 2716
Remix Icon Apache License Version 2.0 3.5.0 2537
Flat Color Icons MIT 1.0.2 329
Grommet-Icons Apache License Version 2.0 4.11.0 635
Heroicons MIT 1.0.6 460
Heroicons 2 MIT 2.0.18 876
Simple Icons CC0 1.0 Universal 9.20.0 2753
Simple Line Icons MIT 2.5.5 189
IcoMoon Free CC BY 4.0 License d006795ede 491
BoxIcons CC BY 4.0 License 2.1.4 1634
css.gg MIT 2.1.1 704
VS Code Icons CC BY 4.0 0.0.35 439
Tabler Icons MIT 2.40.0 4836
Themify Icons MIT v0.1.2-2-g9600186 352
Radix Icons MIT @radix-ui/@d3v4pp/svgs@1.3.0-1-g94b3fcf 318
Phosphor Icons MIT 2.0.2 7488
Icons8 Line Awesome MIT 1.3.1 1544

You can add more icons by submitting pull requests or creating issues.

Configuration

You can configure @d3v4pp/svgs props using React Context API.

Requires React 16.3 or higher.

import { IconContext } from "@d3v4pp/svgs";

<IconContext.Provider value={{ color: "blue", className: "global-class-name" }}>
  <div>
    <FaFolder />
  </div>
</IconContext.Provider>;
Key Default Notes
color undefined (inherit)
size 1em
className undefined
style undefined Can overwrite size and color
attr undefined Overwritten by other attributes
title undefined Icon description for accessibility

Adjustment CSS

From version 3, vertical-align: middle is not automatically given. Please use IconContext to specify className or specify an inline style.

Global Inline Styling

<IconContext.Provider value={{ style: { verticalAlign: 'middle' } }}>

Global className Styling

Component

<IconContext.Provider value={{ className: '@d3v4pp/svgs' }}>

TypeScript native support

Dependencies on @types/@d3v4pp/svgs can be deleted.

Yarn

yarn remove @types/@d3v4pp/svgs

NPM

npm remove @types/@d3v4pp/svgs

Contributing

./build-script.sh will build the whole project. See also CI scripts for more information.

Development

yarn
cd packages/@d3v4pp/svgs
yarn fetch  # fetch icon sources
yarn build

Why React SVG components instead of fonts?

SVG is supported by all major browsers. With @d3v4pp/svgs, you can serve only the needed icons instead of one big font file to the users, helping you to recognize which icons are used in your project.

Licence

  • Icons are taken from the other projects so please check each project licences accordingly.