Closed
Description
I would like to add a Phosphor icons to my project, and I am trying to include it as a custom icon set like described in the Vuetify documentation. However it looks like this module doesn't accept custom icon sets:
interface IconsOptions {
/**
* @default 'mdi'
*/
defaultSet: IconSetName;
/**
* The prefix for UnoCSS Preset Icons.
*
* @default 'i-'
*/
unocssIconPrefix?: string;
sets?: IconFontName | IconFontName[] | FontIconSet[];
svg?: {
mdi?: JSSVGIconSet;
fa?: FontAwesomeSvgIconSet;
};
}
If I look at the types from Vuetify I can see that sets
should accept a component
interface IconSet {
component: IconComponent;
}
type IconOptions = {
defaultSet?: string;
aliases?: Partial<IconAliases>;
sets?: Record<string, IconSet>;
};
which corresponds well with the Vuetify docs for adding a custom icon sets using a render function.
Metadata
Metadata
Assignees
Labels
No labels