The Icon component of v6 is used throughout the other components. Neat! Yet, you can't pass a custom set to it through it, when you use a Badge for example. So instead of adding a set parameter to all the other components, why not make the name parameter more versatile and introduce namespaces, as we know them from Laravel.
This could look something like this: icon-namespace::icon-name or in a real world example: <Badge icon="icon-namespace::icon-name">Some Badge</Badge>.
We'd just need to check for it somewhere here: https://github.com/statamic/cms/blob/6.x/resources/js/components/ui/Icon/Icon.vue#L22
The Icon component of v6 is used throughout the other components. Neat! Yet, you can't pass a custom set to it through it, when you use a
Badgefor example. So instead of adding asetparameter to all the other components, why not make the name parameter more versatile and introduce namespaces, as we know them from Laravel.This could look something like this:
icon-namespace::icon-nameor in a real world example:<Badge icon="icon-namespace::icon-name">Some Badge</Badge>.We'd just need to check for it somewhere here: https://github.com/statamic/cms/blob/6.x/resources/js/components/ui/Icon/Icon.vue#L22