equinor/design-system
suggestion: Intellisense suggestions for built-in icons
Offen
#4.253 geöffnet am 21.11.2025
good first issue
Repository-Metriken
- Stars
- (147 Sterne)
- PR-Merge-Metriken
- (PR-Metriken ausstehend)
Beschreibung
By changing this definition the intellisense suggestions will suggest the known icons, while also allowing other strings.
export type IconName = keyof typeof icons | (string & {});
Alternatively an export of "EdsBuiltinIcons" would a nice alternative. Then I could use ({"" satisfies EdsBuiltinIcon}) to get intellisense for those.
Before:
After: