PHPackages                             bugo/moonshine-heroicons-field - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. bugo/moonshine-heroicons-field

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bugo/moonshine-heroicons-field
==============================

Heroicons selection field for MoonShine

2.0(6mo ago)3919MITPHPPHP ^8.2CI passing

Since Apr 20Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/dragomano/moonshine-heroicons-field)[ Packagist](https://packagist.org/packages/bugo/moonshine-heroicons-field)[ Docs](https://github.com/dragomano/moonshine-heroicons-field)[ RSS](/packages/bugo-moonshine-heroicons-field/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (14)Used By (0)

MoonShine Heroicons Field
=========================

[](#moonshine-heroicons-field)

[![PHP](https://camo.githubusercontent.com/7bffcab80be9e1d83d7ec1e72f01342ea9ea17a26347f9b34a8d4a5ae8b58c48/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e322d626c75652e7376673f7374796c653d666c6174)](https://camo.githubusercontent.com/7bffcab80be9e1d83d7ec1e72f01342ea9ea17a26347f9b34a8d4a5ae8b58c48/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e322d626c75652e7376673f7374796c653d666c6174)[![Coverage Status](https://camo.githubusercontent.com/18ea829e29a3838369cbf11ba8ce13a6b37825e60050d221a580432adb4f8641/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f647261676f6d616e6f2f6d6f6f6e7368696e652d6865726f69636f6e732d6669656c642f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/dragomano/moonshine-heroicons-field?branch=main)

Convenient Heroicons selection field for [MoonShine](https://github.com/moonshine-software/moonshine)

### Support MoonShine versions

[](#support-moonshine-versions)

MoonShineThis package2.0+0.x3.0+1.x4.0+2.xInstallation
------------

[](#installation)

```
composer require bugo/moonshine-heroicons-field
```

Configuration
-------------

[](#configuration)

You can specify desired default style for icons:

`.env`:

```
HEROICONS_STYLE=outline
```

`config/heroicons-field.php`:

```
php artisan vendor:publish --tag=heroicons-field
```

```
/*
 * Possible values:
 * 's', 'solid' - Solid 24x24, Solid fill
 * 'o', 'outline' - Outline 24x24, 1.5px stroke
 * 'm', 'mini' - Mini 20x20, Solid fill
 * 'c', 'micro' - Micro 16x16, Solid fill
 */
return [
    'style' => env('HEROICONS_STYLE', 'solid'),
];
```

Usage
-----

[](#usage)

You can use `IconSelect` field in your resources:

```
