-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add list of aliased
lucide-react
icons to the transform rules (#53483)
`lucide-react` follows the naming rule of `LucideName`, `NameIcon` and `Name` being exported from `/icons/{{ kebabCase Name }}`, but it has some special aliases such as `Stars` exported from `/icons/sparkles`. For now we have to add these rules manually. Fixes #53051 (comment). In the future we'll still need an automatic way to do this. The list was created from https://unpkg.com/[email protected]/dist/esm/lucide-react.mjs.
- Loading branch information
Showing
2 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,49 @@ | ||
import { IceCream, BackpackIcon, LucideActivity } from 'lucide-react' | ||
import { | ||
IceCream, | ||
BackpackIcon, | ||
LucideActivity, | ||
Code, | ||
Menu, | ||
SortAsc, | ||
SortAscIcon, | ||
LucideSortDesc, | ||
VerifiedIcon, | ||
CurlyBraces, | ||
Slash, | ||
SquareGantt, | ||
CircleSlashed, | ||
SquareKanban, | ||
SquareKanbanDashed, | ||
Stars, | ||
Edit, | ||
Edit2, | ||
LucideEdit3, | ||
TextSelection, | ||
} from 'lucide-react' | ||
|
||
export default function Page() { | ||
return ( | ||
<> | ||
<IceCream /> | ||
<BackpackIcon /> | ||
<LucideActivity /> | ||
<Code /> | ||
<Menu /> | ||
<SortAsc /> | ||
<SortAscIcon /> | ||
<LucideSortDesc /> | ||
<VerifiedIcon /> | ||
<CurlyBraces /> | ||
<Slash /> | ||
<SquareGantt /> | ||
<CircleSlashed /> | ||
<SquareKanban /> | ||
<SquareKanbanDashed /> | ||
<Stars /> | ||
<Edit /> | ||
<Edit2 /> | ||
<LucideEdit3 /> | ||
<TextSelection /> | ||
</> | ||
) | ||
} |