Adding custom icons to cards #2807
MyNameIsJeff-305
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What version of
starlight
are you using?0.30.3
What is your idea?
The basic idea is to have the possibility of adding custom icons to cards. A normal syntax for a Card is:
<Card title="title" icon="rocket">This is a Card</Card>
My idea is that we could add the svg code on the icon tag, whether we reference the SVG from another file or by pasting the entire SVG Code into it
Why is this feature necessary?
This would help developers to be able to add their own SVGs into cards, because rigth now, the icon list available may be a little bit short for some industry niches, specially outside the tech industry. That would help also to integrate other icons, like Material-Design based icons, or custom icons created by the community
Do you have examples of this feature in other projects?
This is the project I am working on. I would like to have icons for cities, Employees, Jobs, etc. If I could add my own icons, I could go to Material Icons and get the SVG code and paste it on the "icon" tag of the cards:
https://smart-solutions-crm.netlify.app/
Participation
Beta Was this translation helpful? Give feedback.
All reactions