Installing Unicon

Unicon is a Laravel package distributed on Packagist via Composer.

Run the following command to install the package in your project.

composer require hedger/unicon

Rendering an icon

Unicon provides an icon Blade component that you can use to render any icon.

<x-icon name="heroicons:clock" class="w-6 h-6" />

The name attribute is the combination of the prefix and the icon name, separated by a colon. For example, the clock icon from the Heroicons collection is heroicons:clock.