LucideIconName
LucideIconName = keyof typeof
icons
Defined in: packages/core/src/utils.ts:25
Valid Lucide icon name string (e.g. "FileText", "Users", "Settings").
Derived from the icons map exported by lucide-react — the same map the
Icon component in @vexcms/react indexes at render time. This is
deliberately narrower than the set of names lucide-react exports as
components: alias exports (AlertCircle → CircleAlert), the *Icon
suffixed duplicates (UsersIcon), and non-icon exports (createLucideIcon,
icons, Icon) are absent from the map and would render nothing.
Use the canonical PascalCase name as listed on the Lucide site.
- https://lucide.dev/icons
- the
Iconcomponent from@vexcms/reactthat renders aLucideIconName
Example
Section titled “Example”const icon: LucideIconName = "CircleAlert"; // ✅ canonical, rendersconst alias: LucideIconName = "AlertCircle"; // ❌ alias export, not in `icons`const bad: LucideIconName = "NotAnIcon"; // ❌ not an icon at all