alexazartsev / heroicon

A Laravel Nova field for managing icons.

Stars
3

Heroicon Nova Field

A Laravel Nova Field for managing icons. Heroicons icons used by default. There is a
possability to use custom icon in svg format. Icon saved as svg html tag into db.

Installation:

Use composer for installation. Laravel with nova required.

composer require alexazartsev/heroicon

Usage:

Use it as regular nova field:

use AlexAzartsev\Heroicon\Heroicon;

Heroicon::make('Icon');

To use custom or customize existing icon click on Edit button and just edit svg code of selected icon:

Configuration:

To disable editor of the icon:

use AlexAzartsev\Heroicon\Heroicon;

Heroicon::make('Icon')->disableEditor();

To allow only one type of icons (solid or outline), use one of these methods:

use AlexAzartsev\Heroicon\Heroicon;

Heroicon::make('Icon')->onlySolid();
Heroicon::make('Icon')->onlyOutline();

Support:

[email protected]

License:

The MIT License (MIT). Please see License File for more information.