wireui icon indicating copy to clipboard operation
wireui copied to clipboard

Heroicons v2

Open cloudstudio opened this issue 2 years ago • 4 comments

Hello! heroicons v2 is released https://heroicons.com/

Any option to have it in wireui by default ? this could be awesome!

cloudstudio avatar Aug 24 '22 05:08 cloudstudio

I'm creating the update to heroicons v2 as a third-party package at https://github.com/wireui/heroicons

Just install the package and use it. When it's released I'll let you know

ph7jack avatar Aug 25 '22 04:08 ph7jack

The heroicons v2 was released, but only the wireui v2 will use them.

If you want to have the heroicons, you can install the package Then, add a custom name to the heroicons alias, or rename the wireui icon component Does that make sense?

ph7jack avatar Aug 31 '22 01:08 ph7jack

@PH7-Jack May you please explain your last post a little bit more in detail? I don't get it to work. Thanks!

SebastianSchoeps avatar Apr 20 '23 08:04 SebastianSchoeps

@PH7-Jack May you please explain your last post a little bit more in detail? I don't get it to work. Thanks!

You need to first publish the wireui configuration (php artisan vendor:publish --tag='wireui.config'), then you can edit alias used for the old icons.

Example:

    'components' => [
        'icon' => [
            'class' => Components\Icon::class,
            'alias' => 'old-icon',
        ],
    ]

Then clear the view cache (php artisan view:clear), now <x-icon will use v2 icons from the heroicons package and <x-old-icon will use v1 icons.

joshluongo avatar Oct 04 '23 00:10 joshluongo

Thank you for using WireUi!

This feature was added in stable version 2. Check our documentation at: https://wireui.dev.

joaopalopes24 avatar Jun 13 '24 22:06 joaopalopes24