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

Docs are using old icon naming scheme #2705

Open
1 of 15 tasks
Vanuan opened this issue Dec 26, 2024 · 3 comments
Open
1 of 15 tasks

Docs are using old icon naming scheme #2705

Vanuan opened this issue Dec 26, 2024 · 3 comments
Labels
🐛 bug Something isn't working 🌍 site Has to do something with the Lucide website

Comments

@Vanuan
Copy link

Vanuan commented Dec 26, 2024

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 I import triangle-alert for example, it appears this icon doesn't exist. I figured it out eventually that docs aren't up to date and I should use alert-triangle instead. But it was confusing

Steps to reproduce

  1. Open icon https://lucide.dev/icons/triangle-alert
  2. Click copy JSX
  3. Paste to my app
  4. TriangleAlert is not exported

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.)
@Vanuan Vanuan added 🌍 site Has to do something with the Lucide website 🐛 bug Something isn't working labels Dec 26, 2024
@Vanuan
Copy link
Author

Vanuan commented Dec 26, 2024

This was actually reported before, but closed:
#2486

@Vanuan
Copy link
Author

Vanuan commented Dec 26, 2024

The relevant PR appears to be this:
#1906

@Vanuan
Copy link
Author

Vanuan commented Dec 26, 2024

The specific renaming pattern that is the cause:
pnpm renamePattern "^([a-z-]+)-(square|circle|diamond|octagon|hexagon|triangle)$" "\2-\1"

The same should be applied to lucide.dev website

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working 🌍 site Has to do something with the Lucide website
Projects
None yet
Development

No branches or pull requests

1 participant