wireui
wireui copied to clipboard
Heroicons v2
Hello! heroicons v2 is released https://heroicons.com/
Any option to have it in wireui by default ? this could be awesome!
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
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?
@PH7-Jack May you please explain your last post a little bit more in detail? I don't get it to work. Thanks!
@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.
Thank you for using WireUi!
This feature was added in stable version 2. Check our documentation at: https://wireui.dev.