Closed bernaferrari closed 1 month ago
Does this not work for you?
import * as icons from "lucide-static";
const iconsArray = Object.values(icons)
What is the exact usecase?
I'm going to sound extremely dumb, but that worked... I tried before (multiple times) but somehow I was getting wrong types and stuff. Thanks a lot.
Does this not work for you?
import * as icons from "lucide-static"; const iconsArray = Object.values(icons)
What is the exact usecase?
Bundle size is probably going to be horrible tho.
It is on the server, so it is fine.
Package
Description
I wish I could do:
or
Maybe you could expose an array in
lucide-static
, a json file, or something else that made easy for me.From the own docs, it says:
Yet I don't know how to get "all strings of svgs" all it once in a single place.
Checklist