Open jonathanfristedt opened 3 months ago
When we're talking about mix we are talking about a base framework to build UI, so it should be accessible for every project and Ideia. If we start to support SVG by default on Mix, we will need to choose a library and use a specific version that can conflict with the version of the same library in your project. Instead of being afraid about this, we created a highly scalable API that enables you to create your own Styled Widget
.
If you have any questions about this, feel free to send us. 😁
To create your own Styled Widget, I suggest you this doc Supporting new Widgets
Ah I understand! I think (and hope) a lot of people will be attracted to Mix because they see an opportunity to build their own UI and product experience instead of a material or shoddy looking cupertino one. That's at least what I see! It could be worth to consider adding a doc with a best practice for how to handle custom icons with Mix, not urgently, but soon enough.
I suggest you try to create your own StyledWidget
with this tutorial. Most of our documentation is in validation, so we need some feedback about the content and the way we're explaining the concepts. If you can't support your own Icon Widget with this tutorial let me know it will be a pleasure to hear your feedback and questions.
Use case
I'd like to use my own SVG icons with StyledIcon.
Icon code example:
Proposal
Ideally the solution is flexible enough to enable seamless use of existing icons in Mix. Making it easier to transition more and more UI into mix without having to setup an additional icon set that works with mix.