Skip to content

[Replacement]: devicons-react → @devicons-pack/react #1154

Open

Description

@josch87

Package to replace

devicons-react

Package link

https://npmx.dev/package/devicons-react

Replacement package(s)

@devicons-pack/react

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-react uses individual icon paths such as devicons-react/icons/TypescriptPlain, while @devicons-pack/react groups named exports by variant, e.g. @devicons-pack/react/plain.
  • Component names: TypescriptPlain becomes Typescript when imported from the /plain entry point.
  • Sizing: The size prop can be replaced with standard SVG props such as width and height.
  • Customization: Both support SVG customization, including color and className. 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" />

Activity

  1. josch87 commented on Oct 29, 2026

    @josch87
    Author

    Hi @MKAbuMattar,

    I've proposed @devicons-pack/react as a preferred replacement for both devicons-react (#1154) and react-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.

  2. MKAbuMattar commented on Nov 5, 2026

    @MKAbuMattar

    Thanks @josch87. I checked #1154 and #1155 against the current package and both are accurate. devicons-react was mine, and @devicons-pack/react replaces it.

    Two details for the migration notes:

    • Per-icon imports still exist. import { Typescript } from '@devicons-pack/react/plain/typescript' is the closest match to the old devicons-react/icons/TypescriptPlain path. The /plain barrel also tree-shakes.
    • color only changes icons drawn with currentColor, which covers most plain and line icons. original icons keep their brand colors, so color has no effect on them.

    Icons also take a title prop. Without it the SVG is aria-hidden; with it the SVG gets an aria-label.

  3. added
    accepted
    on Nov 5, 2026
  4. maksimgm commented on Nov 20, 2026

    @maksimgm
    Contributor

    hey @MKAbuMattar, the PR for this (#1171) is close. since @devicons-pack/react is still new it's under our download threshold, so would you be up for deprecating devicons-react on npm with a message pointing to @devicons-pack/react? something like npm deprecate devicons-react "moved to @devicons-pack/react"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions