PHPackages                             maggomann/filament-only-icon-display - 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. [Admin Panels](/categories/admin)
4. /
5. maggomann/filament-only-icon-display

ActiveLibrary[Admin Panels](/categories/admin)

maggomann/filament-only-icon-display
====================================

The package provides the `HasOnlyIcon` trait for \[Filament Admin Panel v2.x\](https://filamentphp.com/docs/2.x/admin/installation). With this trait it is possible to display the table actions buttons only as icon or optionally only as icon including tooltip. The package currently provides the table action buttons (`CreateAction`, `DeleteAction`, `EditAction` and `ViewAction`) that already contain the trait. Own table action buttons can be extended with the `HasOnlyIcon` €trait, so that the methods are then available.

v0.2.0(2y ago)06.6k[2 PRs](https://github.com/Maggomann/filament-only-icon-display/pulls)1MITPHPPHP ^8.1

Since Jan 18Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Maggomann/filament-only-icon-display)[ Packagist](https://packagist.org/packages/maggomann/filament-only-icon-display)[ Docs](https://github.com/maggomann/filament-only-icon-display)[ RSS](/packages/maggomann-filament-only-icon-display/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (12)Versions (5)Used By (1)

[![GitHub Tests Action Status](https://camo.githubusercontent.com/5ea32af0595d034dca2ae83faedb8d1c1f3fd3eb66185c97de3f5292a3ea0fc6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f4d6167676f6d616e6e2f66696c616d656e742d6f6e6c792d69636f6e2d646973706c61792f72756e2d74657374732e796d6c3f6272616e63682533416d61696e266c6162656c3d7465737473)](https://github.com/Maggomann/filament-only-icon-display/actions?query=workflow%3Arun-tests+branch%3Amain) [![GitHub license](https://camo.githubusercontent.com/1b40bf9a50dc4e8ccdb87c1fb5e286ef9cfc6cee621757654c1a43c18b219e38/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4d6167676f6d616e6e2f66696c616d656e742d6f6e6c792d69636f6e2d646973706c6179)](https://github.com/Maggomann/filament-only-icon-display/blob/main/LICENSE.md) [![Total Downloads](https://camo.githubusercontent.com/2bc4ea0add2bbdb35de7cded0a997fc065f34a70aef7af17e2f70b4a2917d9be/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6167676f6d616e6e2f66696c616d656e742d6f6e6c792d69636f6e2d646973706c61792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/maggomann/filament-only-icon-display)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#--)

Filament only icon display package for filament v2.x
====================================================

[](#filament-only-icon-display-package-for-filament-v2x)

This package is tailored for [Filament Admin Panel v2.x](https://filamentphp.com/docs/2.x/admin/installation).

Make sure you have installed the admin panel before you continue with the installation. You can check the [documentation here](https://filamentphp.com/docs/2.x/admin/installation)

The package provides the `HasOnlyIcon` trait for [Filament Admin Panel v2.x](https://filamentphp.com/docs/2.x/admin/installation). With this trait it is possible to display the table actions buttons only as icon or optionally only as icon including tooltip. The package currently provides the table action buttons (`CreateAction`, `DeleteAction`, `EditAction` and `ViewAction`) that already contain the trait. Own table action buttons can be extended with the `HasOnlyIcon` trait, so that the methods are then available.

[![only_icon](./docs/assets/only_icon.png)](./docs/assets/only_icon.png)

[![only_icon_and_tooltip](./docs/assets/only_icon_and_tooltip.png)](./docs/assets/only_icon_and_tooltip.png)

Supported Versions
------------------

[](#supported-versions)

PHP: `8.1`

Laravel: `9`

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

[](#installation)

You can install the package via composer:

```
composer require maggomann/filament-only-icon-display
```

How is it used?
---------------

[](#how-is-it-used)

Use the supplied classes in your filament project as usual

```
use Filament\Resources\RelationManagers\RelationManager;
use Maggomann\FilamentOnlyIconDisplay\Domain\Tables\Actions\CreateAction;
use Maggomann\FilamentOnlyIconDisplay\Domain\Tables\Actions\DeleteAction;
use Maggomann\FilamentOnlyIconDisplay\Domain\Tables\Actions\EditAction;
use Maggomann\FilamentOnlyIconDisplay\Domain\Tables\Actions\ViewAction;

class YourRelationManager extends RelationManager
{
    public static function table(Table $table): Table
    {
        return $table
            ->actions([
                CreateAction::make()->onlyIconAndTooltip(), // show icon and tooltip with the content of $this->name
                EditAction::make()->onlyIconAndTooltip(), // show icon and tooltip with the content of $this->name
                ViewAction::make()->onlyIconAndTooltip(), // show icon and tooltip with the content of $this->name
                DeleteAction::make()->onlyIconAndTooltip(), // show icon and tooltip with the content of $this->name
            ])
        //....

    }
}
```

Or use your own table action class

```
use Filament\Tables\Actions\Action;
use Maggomann\FilamentOnlyIconDisplay\Domain\Tables\Traits\HasOnlyIcon;

class YourOwnAction extends Action
{
    use HasOnlyIcon;
}

// ...
// ...
// ...

use Filament\Resources\RelationManagers\RelationManager;
use YourOwnAction;

class YourRelationManager extends RelationManager
{
    public static function table(Table $table): Table
    {
        return $table
            ->actions([
                YourOwnAction::make('you need a name')->onlyIconAndTooltip(),
            ])
        //....

    }
}
```

### onlyIconAndTooltip() method

[](#onlyiconandtooltip-method)

Displays only the icon including the tooltip.

```
use Filament\Tables\Actions\Action;
use Maggomann\FilamentOnlyIconDisplay\Domain\Tables\Traits\HasOnlyIcon;

class YourOwnAction extends Action
{
    use HasOnlyIcon;
}

YourOwnAction::make('my name')->onlyIconAndTooltip(), // tooltip content: my name
YourOwnAction::make('my name')
    ->label('my label')
    ->onlyIconAndTooltip(), // tooltip content: my label
YourOwnAction::make('my name')
    ->label('my label')
    ->tooltip('my tooltip')
    ->onlyIconAndTooltip(), // tooltip content: my tooltip
```

### onlyIcon() method

[](#onlyicon-method)

Displays only the icon without the tooltip, no matter what label, name or tooltip they provide with the classic method names.

```
use Filament\Tables\Actions\Action;
use Maggomann\FilamentOnlyIconDisplay\Domain\Tables\Traits\HasOnlyIcon;

class YourOwnAction extends Action
{
    use HasOnlyIcon;
}

YourOwnAction::make('my name')->onlyIcon(), // tooltip content: no content
YourOwnAction::make('my name')
    ->label('my label')
    ->onlyIcon(), // tooltip content: no content
YourOwnAction::make('my name')
    ->label('my label')
    ->tooltip('my tooltip')
    ->onlyIcon(), // tooltip content: no content
```

Testing
-------

[](#testing)

```
composer test
composer test:pest-coverage
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Marco Ehrt](https://github.com/Maggomann)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Disclaimer
----------

[](#disclaimer)

**Please note that these packages for Filament are not officially operated by Filament and do not provide any support or warranty from the Filament team. The use of these packages is at your own risk.**

This project represents unofficial extensions for Filament and is maintained by an independent community of developers. We strive to maintain compatibility with the current versions of Filament, but we cannot guarantee that the packages will function flawlessly or be compatible with future versions of Filament.

We recommend users to create backups of their projects and thoroughly test them before using these packages. If you have any questions, issues, or suggestions, we are available to assist you. However, please note that we cannot provide official support for these packages.

We would like to emphasize that Filament is a separate developer community independent of this project. For more information about Filament, please refer to the official Filament website.

Please read the license terms to learn more about the conditions for using these packages.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~121 days

Total

2

Last Release

1089d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/765f102aaeb3fa64356cc95d41c27f798bd5c6c25948cb20de248fcc953b1192?d=identicon)[Maggomann](/maintainers/Maggomann)

---

Top Contributors

[![Maggomann](https://avatars.githubusercontent.com/u/4435288?v=4)](https://github.com/Maggomann "Maggomann (7 commits)")

---

Tags

laravelfilamentmaggomannfilament-only-icon-displayfilament table actions

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/maggomann-filament-only-icon-display/health.svg)

```
[![Health](https://phpackages.com/badges/maggomann-filament-only-icon-display/health.svg)](https://phpackages.com/packages/maggomann-filament-only-icon-display)
```

###  Alternatives

[guava/filament-knowledge-base

A filament plugin that adds a knowledge base and help to your filament panel(s).

206120.5k1](/packages/guava-filament-knowledge-base)[caresome/filament-neobrutalism-theme

A neobrutalism theme for FilamentPHP admin panels

303.2k](/packages/caresome-filament-neobrutalism-theme)[andreia/filament-ui-switcher

Add a modal with options to switch between different UI layouts and styles (colors, fonts, font sizes).

233.8k](/packages/andreia-filament-ui-switcher)[riodwanto/filament-ace-editor

An ACE editor field for Filament forms with syntax highlighting, themes, and autocompletion.

2065.8k4](/packages/riodwanto-filament-ace-editor)[geo-sot/filament-env-editor

Access .env file though Filament admin panel

2432.3k1](/packages/geo-sot-filament-env-editor)[a2insights/filament-saas

Filament Saas for A2Insights

161.1k](/packages/a2insights-filament-saas)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
