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(3y ago)16.6k[1 issues](https://github.com/Maggomann/filament-only-icon-display/issues)[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 today

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

22

—

LowBetter than 21% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

1140d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4435288?v=4)[Marco Ehrt](/maintainers/Maggomann)[@Maggomann](https://github.com/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

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[filament/support

Core helper methods and foundation code for all Filament packages.

2331.0M245](/packages/filament-support)[stephenjude/filament-jetstream

A Laravel starter kit built with Filament inspired by Jetstream.

17760.2k3](/packages/stephenjude-filament-jetstream)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

44855.7k](/packages/harris21-laravel-fuse)

PHPackages © 2026

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