Repository navigation
Open
Labels
acceptedUsed to signal if a suggested replacement has been accepted.
Description
Package to replace
devicons-react
Package link
https://npmx.dev/package/devicons-react
Replacement package(s)
Rationale
@devicons-pack/react is the official successor to the deprecated devicons-react package, maintained by the same author.
The original repository has been archived, with development moved to devicons-pack.
The replacement provides:
- Automated synchronization with the upstream Devicon icon collection.
- Tree-shakeable React components with individual icon imports.
- Built-in TypeScript definitions and standard SVG props.
- Support for both ESM and CommonJS.
- Multiple icon variants (
original,plain,line, and wordmark variants).
Migrating to @devicons-pack/react ensures continued maintenance and access to newer Devicon icons.
Compatibility
Both packages provide customizable React SVG components based on the same upstream Devicon icon collection.
The replacement covers the primary functionality but is not a drop-in replacement.
Key differences:
- Imports:
devicons-reactuses individual icon paths such asdevicons-react/icons/TypescriptPlain, while@devicons-pack/reactgroups named exports by variant, e.g.@devicons-pack/react/plain. - Component names:
TypescriptPlainbecomesTypescriptwhen imported from the/plainentry point. - Sizing: The
sizeprop can be replaced with standard SVG props such aswidthandheight. - Customization: Both support SVG customization, including
colorandclassName. Color customization depends on the icon variant. - Module formats: The replacement supports both ESM and CommonJS.
Migration requires updating import paths, component names, and potentially sizing props.
Code example (optional)
// Before: devicons-react
import TypescriptPlain from "devicons-react/icons/TypescriptPlain";
<TypescriptPlain size="50" color="red" />
// After: @devicons-pack/react
import { Typescript } from "@devicons-pack/react/plain";
<Typescript width="50" color="red" />Reacted by Roman
Metadata
Metadata
Assignees
Labels
acceptedUsed to signal if a suggested replacement has been accepted.
Activity
josch87 commentedon Oct 29, 2026
Hi @MKAbuMattar,
I've proposed
@devicons-pack/reactas a preferred replacement for bothdevicons-react(#1154) andreact-devicons(#1155) in the e18e module-replacements project.Thanks for continuing to maintain and improve the Devicon React integration!
Feel free to share any feedback, especially regarding compatibility or migration considerations.
MKAbuMattar commentedon Nov 5, 2026
Thanks @josch87. I checked #1154 and #1155 against the current package and both are accurate.
devicons-reactwas mine, and@devicons-pack/reactreplaces it.Two details for the migration notes:
import { Typescript } from '@devicons-pack/react/plain/typescript'is the closest match to the olddevicons-react/icons/TypescriptPlainpath. The/plainbarrel also tree-shakes.coloronly changes icons drawn withcurrentColor, which covers mostplainandlineicons.originalicons keep their brand colors, socolorhas no effect on them.Icons also take a
titleprop. Without it the SVG isaria-hidden; with it the SVG gets anaria-label.maksimgm commentedon Nov 20, 2026
hey @MKAbuMattar, the PR for this (#1171) is close. since
@devicons-pack/reactis still new it's under our download threshold, so would you be up for deprecatingdevicons-reacton npm with a message pointing to@devicons-pack/react? something likenpm deprecate devicons-react "moved to @devicons-pack/react"