equinor/design-system

suggestion: Intellisense suggestions for built-in icons

Ouverte

#4 253 ouverte le 21 nov. 2025

 (0 commentaire) (0 réaction) (0 personne assignée)TypeScript (74 forks)auto 404
good first issue

Métriques du dépôt

Stars
 (147 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

https://github.com/equinor/design-system/blob/2f4267b5436c685e01cce1ef937b234f39c7153b/packages/eds-icons/src/types.ts#L5

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:

Guide contributeur