Browser
Operating system
Description
The documentation on the website contains a small typo regarding icon imports in Vanilla JS projects.
Currently, the example shows the icon imported in lowercase, which throws an error because Lucide exports icons using PascalCase:
<script>
import { createIcons, pencil } from 'lucide'; // Throws an error
createIcons({
icons: {
pencil
}
});
</script>
<i data-lucide="pencil"></i>
To make the import work:
<script>
import { createIcons, Pencil } from 'lucide'; // pencil --> Pencil
createIcons({
icons: {
Pencil // pencil --> Pencil
}
});
</script>
<i data-lucide="pencil"></i>
Steps to reproduce
See above
Checklist
Browser
Operating system
Description
The documentation on the website contains a small typo regarding icon imports in Vanilla JS projects.
Currently, the example shows the icon imported in lowercase, which throws an error because Lucide exports icons using PascalCase:
To make the import work:
Steps to reproduce
See above
Checklist