SoftwareBrothers / adminjs-design-system

DesignSystem on which AdminJS is based on
27 stars 33 forks source link

[feature request] Icon component - allow custom urls for icons #91

Open code-K opened 1 year ago

code-K commented 1 year ago

Hi guys,

could you please enhance the icon component to allow custom urls instead of forcing the feather icons lib!?

I would possibly see here some logic like given “icon” name isn’t found in the feathericons lib, then try to load as given url? So in the resource-options itself i could then just give a src-url instead of the icon name like in the following screenshot commented..?

Bildschirmfoto 2023-05-30 um 15 23 44

@dziraf mentioned the following in the adminJS "help" channel within slack:

Something like: icon: string | { imgSrc: string } could probably work. Can you create a Github issue for this request?

https://adminbro.slack.com/archives/C011WETJSCB/p1685614592159569?thread_ts=1685453058.620609&cid=C011WETJSCB

Thanks much!