In the Nuxt module <codex-icon> component requires name to be one of available icon names. It is checking internally, but outside of this module, there is no ability to access the available icon names list.
So I've exported a Union Type with available icon names.
Now Nuxt module users can access icon names:
import type { CodexIconName } from '@codexteam/nuxt-icons';
It allows to create wrappers around <codex-icon>. In my example it is the UiButton component:
In the Nuxt module
<codex-icon>
component requiresname
to be one of available icon names. It is checking internally, but outside of this module, there is no ability to access the available icon names list.So I've exported a Union Type with available icon names.
Now Nuxt module users can access icon names:
It allows to create wrappers around
<codex-icon>
. In my example it is theUiButton
component: