IconName
IconName =
GeneratedVexTypesextendsobject?TName:string
Defined in: packages/core/src/utils/index.ts:27
Icon name accepted by admin.icon on collections, globals, blocks, and live
preview breakpoints.
Core is icon-library agnostic; the name set comes from the
GeneratedVexTypes augmentation vex generate writes.
- Before
vex generate:string. - After: the canonical Lucide names — the keys of
lucide-react’siconsmap, which theIconcomponent in@vexcms/reactindexes at render time. Alias exports (AlertCircle) and*Iconduplicates (UsersIcon) are not in that map and are rejected.
Example
Section titled “Example”const icon: IconName = "CircleAlert"; // ✅ canonical, rendersconst alias: IconName = "AlertCircle"; // ❌ alias export, not in `icons`