Creates an icons object for the icons option of RenderOptions, keyed by each icon's name rather than by the input object's keys. Reference an icon's key with iconMap.<IconName>.name.
icons
name
iconMap.<IconName>.name
import {LucideCircleAlertIcon, LucideStarIcon} from 'vira';const icons = mapIconsByName({LucideCircleAlertIcon, LucideStarIcon});// {CircleAlert: LucideCircleAlertIcon, Star: LucideStarIcon} Copy
import {LucideCircleAlertIcon, LucideStarIcon} from 'vira';const icons = mapIconsByName({LucideCircleAlertIcon, LucideStarIcon});// {CircleAlert: LucideCircleAlertIcon, Star: LucideStarIcon}
Creates an icons object for the
iconsoption of RenderOptions, keyed by each icon'snamerather than by the input object's keys. Reference an icon's key withiconMap.<IconName>.name.