Skip to content

Icon Vue component: ability to pass icon set through name #1455

@andjsch

Description

@andjsch

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions