Skip to content

Commit

Permalink
Remove solid support and add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ericfennis committed Sep 6, 2024
1 parent b3f5742 commit 3ec8e15
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 6,862 deletions.
10 changes: 9 additions & 1 deletion docs/guide/advanced/aliased-names.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,21 @@ import {
} from "lucide-react";
```


## Choosing import name style

To be consistent there an option to able the choose the import name style you want to use.
This can be done by creating a custom module declaration file. And override the import name style.

Only available for `lucide-react`, `lucide-preact`, `lucide-react-native`, `lucide-vue-next` package.

```ts
declare module "lucide-react" {
export * from "lucide-react/dist/lucide-react.prefixed";
}
```

| Import Style | Available imports | Declaration file import |
| ------------- | --------------------------- | ----------------------- |
| Default | Home, HomeIcon, LucideHome | |
| Prefixed | LucideHome | [package].prefixed |
| Suffixed | HomeIcon | [package].suffixed |
Loading

0 comments on commit 3ec8e15

Please sign in to comment.