Skip to content

Conversation

@daisuke-awaji
Copy link
Contributor

Add comprehensive usage rules for react-icons library to prevent common import errors. The guidelines include:

  • Mandatory icon name prefix usage (Fa, Fi, Md, Tb, Hi, Bs)
  • Correct and incorrect import examples
  • Common icon name mappings for frequently used icons
  • Clear indication that unprefixed icon names will cause runtime errors

This change helps ensure generated code correctly imports react-icons components by enforcing the prefix convention that matches each icon set's import path.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Add comprehensive usage rules for react-icons library to prevent common import errors. The guidelines include:
- Mandatory icon name prefix usage (Fa, Fi, Md, Tb, Hi, Bs)
- Correct and incorrect import examples
- Common icon name mappings for frequently used icons
- Clear indication that unprefixed icon names will cause runtime errors

This change helps ensure generated code correctly imports react-icons components by enforcing the prefix convention that matches each icon set's import path.
@daisuke-awaji daisuke-awaji merged commit a627e39 into main Nov 2, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant