PHPackages                             emuniq/filament-collapsible-subnav - 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. emuniq/filament-collapsible-subnav

ActiveLibrary

emuniq/filament-collapsible-subnav
==================================

A Filament v3 &amp; v4 plugin for collapsible sub-navigation sidebar.

v1.5.0(5mo ago)51.9k↑11.8%[1 PRs](https://github.com/Emuniq/filament-collapsible-subnav/pulls)MITBlade

Since Dec 11Pushed 5mo agoCompare

[ Source](https://github.com/Emuniq/filament-collapsible-subnav)[ Packagist](https://packagist.org/packages/emuniq/filament-collapsible-subnav)[ RSS](/packages/emuniq-filament-collapsible-subnav/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (9)Used By (0)

Filament Collapsible Sub-Navigation
===================================

[](#filament-collapsible-sub-navigation)

A Filament v3 &amp; v4 plugin that adds a collapsible toggle to **sub-navigation sidebars only**. Perfect for resource pages with multiple tabs or sections using `->subNavigationPosition(SubNavigationPosition::Start)`.

Works with **both top navigation and sidebar navigation** layouts - the plugin specifically targets the sub-navigation sidebar that appears on individual resource pages, not the main panel navigation.

**Without Top Navigation (Sidebar Layout):**[![Expanded Sidebar](images/regular.png)](images/regular.png)

**With Top Navigation:**[![Collapsed Sidebar](images/topbar.png)](images/topbar.png)

Requirements
------------

[](#requirements)

- PHP 8.1+
- Laravel 10.0+
- Filament 3.0+ or 4.0+

**Note:** This plugin only affects **sub-navigation sidebars** (the secondary navigation within resource pages), not the main panel sidebar. It works regardless of whether you use top navigation or sidebar navigation for your main panel layout.

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

[](#installation)

Install the package via composer:

```
composer require emuniq/filament-collapsible-subnav
```

**That's it!** The plugin will auto-register to all panels and work immediately with zero flash.

### Optional: Theme Integration

[](#optional-theme-integration)

For a slight performance boost, you can integrate the CSS into your Filament theme:

```
php artisan collapsible-subnav:install
npm run build
```

This bundles the plugin CSS with your theme, reducing HTTP requests. **Not required** - the plugin works perfectly without this step.

Features
--------

[](#features)

- ✅ **Zero configuration** - Auto-registers to all panels
- ✅ Collapsible sidebar toggle button
- ✅ Persistent state using cookies
- ✅ Server-side rendering support (no FOUC)
- ✅ Responsive design
- ✅ Smooth animations
- ✅ No theme, npm, or build step required

How It Works
------------

[](#how-it-works)

The plugin automatically:

1. Registers itself to all Filament panels on installation
2. Injects CSS styles for the collapsible sidebar
3. Adds a toggle button to **sub-navigation sidebars only** (not main panel navigation)
4. Manages state persistence via cookies
5. Applies server-side rendering for seamless loading

The plugin detects pages with sub-navigation and only applies to those specific sidebars, leaving your main panel navigation (top or sidebar) untouched.

Manual Registration (Optional)
------------------------------

[](#manual-registration-optional)

If you prefer manual control, you can prevent auto-registration and register the plugin manually:

```
use Emuniq\FilamentCollapsibleSubnav\CollapsibleSubnavPlugin;

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

License
-------

[](#license)

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

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance72

Regular maintenance activity

Popularity27

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

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 ~0 days

Total

8

Last Release

158d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/227872768d209b013c1c0f320fc5144efc2bf537313ee299cbd4a5f8ee2a097b?d=identicon)[isach5](/maintainers/isach5)

---

Top Contributors

[![isach5](https://avatars.githubusercontent.com/u/150757961?v=4)](https://github.com/isach5 "isach5 (23 commits)")

---

Tags

laravelfilamentsidebarsubnavigation

### Embed Badge

![Health badge](/badges/emuniq-filament-collapsible-subnav/health.svg)

```
[![Health](https://phpackages.com/badges/emuniq-filament-collapsible-subnav/health.svg)](https://phpackages.com/packages/emuniq-filament-collapsible-subnav)
```

###  Alternatives

[guava/filament-modal-relation-managers

Allows you to embed relation managers inside filament modals.

7565.0k4](/packages/guava-filament-modal-relation-managers)[filafly/brisk

A simple, friendly theme for Filament.

2211.9k1](/packages/filafly-brisk)[tapp/filament-webhook-client

Add a Filament resource and a policy for Spatie Webhook client

1120.2k](/packages/tapp-filament-webhook-client)[a2insights/filament-saas

Filament Saas for A2Insights

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

PHPackages © 2026

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