no notes
no notes
no notes
glass-water
icon by @jguddas in https://github.com/lucide-icons/lucide/pull/2579Customize import name styles for lucide-react
, lucide-vue
, lucide-react-native
, lucide-preact
, to manage autocompletion in your IDE.
settings.json
{
"typescript.preferences.autoImportFileExcludePatterns": [
"lucide-react",
"lucide-preact",
"lucide-react-native",
"lucide-vue-next"
]
}
It allows you to choose the import name style.
For React:
declare module "lucide-react" {
// Prefixed import names
export * from "lucide-react/dist/lucide-react.prefixed";
// or
// Suffixed import names
export * from "lucide-react/dist/lucide-react.suffixed";
}
For Vue:
declare module "lucide-vue-next" {
// Prefixed import names
export * from "lucide-vue-next/dist/lucide-vue-next.prefixed";
// or
// Suffixed import names
export * from "lucide-vue-next/dist/lucide-vue-next.suffixed";
}