react-devicons
Version:
React components for the svg icons of the [devicon](https://github.com/devicons/devicon) project.
37 lines (26 loc) • 748 B
Markdown
React components for the svg icons of the
[](https://github.com/devicons/devicon) project.
```js
yarn add react-devicons
// OR
npm i react-devicons
// OR
pnpm i react-devicons
```
```tsx
import ReactOriginalIcon from "react-devicons/react/original";
// or (not recommended, this would increase bundle size by a lot)
import { GithubOriginalIcon, GithubOriginalWordmarkIcon } from "react-devicons";
<GithubOriginalWordmarkIcon />
<GithubOriginalIcon size="2em" />
<ReactOriginalIcon className="my-class" />
```
Icons that are only one color can be recolored like this
```tsx
import DeviconPlainIcon from "react-devicons/devicon/plain";
<DeviconPlainIcon color="white" />;
```