feathericons / feathericons/feather

What is the way to import only certain icons?

Open
#1,104 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
26k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

This is all I can find: import feather from "feather-icons";.

It helps me to use feather.replace() in this class.
But I don't want to load the whole set of icons in my js file.
Can I only have the icons imported that I'm actually using?

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the package's documented import feather from "feather-icons" usage and how feather.replace() handles icons. Determine whether importing only icons used by the application is supported, then document the supported approach or clearly state the limitation; the issue provides no file or test entry point.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.