Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent kebab-casing between class attribute and iconNames #2858

Open
6 of 30 tasks
danteissaias opened this issue Mar 3, 2025 · 0 comments · May be fixed by #2878
Open
6 of 30 tasks

Inconsistent kebab-casing between class attribute and iconNames #2858

danteissaias opened this issue Mar 3, 2025 · 0 comments · May be fixed by #2878
Labels
🐛 bug Something isn't working

Comments

@danteissaias
Copy link

danteissaias commented Mar 3, 2025

Package

  • lucide
  • lucide-angular
  • lucide-flutter
  • lucide-preact
  • lucide-react
  • lucide-react-native
  • lucide-solid
  • lucide-svelte
  • lucide-vue
  • lucide-vue-next
  • Figma plugin
  • source/main
  • other/not relevant

Version

0.477.0

Can you reproduce this in the latest version?

  • Yes
  • No

Browser

  • Chrome/Chromium
  • Firefox
  • Safari
  • Edge
  • iOS Safari
  • Opera
  • Other/not relevant

Operating system

  • Windows
  • Linux
  • macOS
  • ChromeOS
  • iOS
  • Android
  • Other/not relevant

Description

When rendering an icon with lucide-react, the kebab-cased class name is inconsistent with the corresponding entry in iconNames.

Example with AArrowDown icon:

  • Class attribute: class="lucide lucide-aarrow-down"
  • In iconNames: a-arrow-down

Example with Loader2 icon:

  • Class attribute: class="lucide lucide-loader2"
  • In iconNames: loader-2

Root cause appears to be in the toKebabCase function.

Steps to reproduce

N/A

Checklist

  • I have searched if someone has submitted a similar issue before and there weren't any. (Please make sure to also search closed issues, as this issue might already have been resolved.)
@danteissaias danteissaias added the 🐛 bug Something isn't working label Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
1 participant