PHPackages                             g4b0rdev/filament-solar-icons - 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. g4b0rdev/filament-solar-icons

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

g4b0rdev/filament-solar-icons
=============================

Solar icon pack for Filament Icons

v2.0.0(1mo ago)2466MITPHPPHP ^8.4CI passing

Since Oct 10Pushed 1mo agoCompare

[ Source](https://github.com/G4b0rDev/filament-solar-icons)[ Packagist](https://packagist.org/packages/g4b0rdev/filament-solar-icons)[ RSS](/packages/g4b0rdev-filament-solar-icons/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (8)Versions (8)Used By (0)

[![Filament Solar Icons](.github/banner.webp)](.github/banner.webp)

Filament Solar Icons
====================

[](#filament-solar-icons)

A Solar icon set implementation for Filament 5.x, providing the full set of Solar icons integrated with Filament's interface.

Note

**Filament v5 users:** use version `^2.0` of this package. Version `1.x` supports Filament v4 only.

Important

The Solar icon set by [480 Design](https://github.com/480-Design/Solar-Icon-Set) is licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). See [Icon License](#icon-license) section below for attribution requirements.

Index
-----

[](#index)

```
> Installation.....................................................................
> Icon Styles......................................................................
> Using Icons in Custom Enums......................................................
> Custom Enum with Icons.........................................................
> Available Icon Style Enums.....................................................
> Example: Table Column with Custom Icons........................................
> Example: Form Field with Icon..................................................
> Mixing Icon Styles.............................................................
> Override Specific Icons..........................................................
> Override Icon Aliases..........................................................
> Override Individual Icons......................................................
> Override Styles for Specific Aliases...........................................
> Override Styles for Specific Icons.............................................
> Icon License.....................................................................
> CC BY 4.0 Requirements.........................................................
> Credits..........................................................................
> License..........................................................................
```

Installation
------------

[](#installation)

Install via Composer:

```
composer require g4b0rdev/filament-solar-icons
```

Register the plugin in your Filament Panel provider:

```
use G4b0rDev\Icons\Solar\SolarIcons;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugin(SolarIcons::make());
}
```

Icon Styles
-----------

[](#icon-styles)

Solar icons come in **seven styles**: `bold`, `broken`, `duotone`, `linear`, `outline`, `bold-duotone`, and `line-duotone`.

By default, the package uses the `outline` style. You can change the global style:

```
SolarIcons::make()
    ->style('bold');
```

Using Icons in Custom Enums
---------------------------

[](#using-icons-in-custom-enums)

When you need to use Solar icons in custom enums or other contexts where you need the full icon name with the `solar-` prefix, use the `getIconName()` method. This is particularly useful for Filament's `HasIcon` interface.

### Custom Enum with Icons

[](#custom-enum-with-icons)

Example for enum:

```
