PHPackages                             sprigs/expandable-row - 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. sprigs/expandable-row

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

sprigs/expandable-row
=====================

A Laravel Nova packgage that moves the preview from the modal to an expandable row.

0.0.5(3y ago)638.5k↓81.3%3[2 issues](https://github.com/SPRIGS/nova-expandable-row/issues)MITVuePHP ^7.3|^8.0

Since Mar 29Pushed 3y ago1 watchersCompare

[ Source](https://github.com/SPRIGS/nova-expandable-row)[ Packagist](https://packagist.org/packages/sprigs/expandable-row)[ RSS](/packages/sprigs-expandable-row/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (6)Used By (0)

A Laravel Nova package to expand rows in index view
===================================================

[](#a-laravel-nova-package-to-expand-rows-in-index-view)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ec930c1a5dc13bdb5d60d8bddb5eeaeeed087f85937931309af595b7a9dbcc73/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7370726967732f657870616e6461626c652d726f772e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sprigs/expandable-row)[![Total Downloads](https://camo.githubusercontent.com/ce64f9377c278f8318f809a59ec1e17a0bb21043cf39889f7bbcf2a49e760e48/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7370726967732f657870616e6461626c652d726f772e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sprigs/expandable-row)

This package moves the preview data from the modal to an expandable row. Other details can be expanded aswell.

[![Preview of a row expanding](/docs/3-expandable-row.gif)](/docs/3-expandable-row.gif)

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

[](#installation)

You can install the nova tool in to a Laravel app that uses [Nova](https://nova.laravel.com) via composer:

```
composer require sprigs/expandable-row
```

Usage
-----

[](#usage)

To show the expandable row, use it jus as any other field.

```
// in app/Nova/YourResource.php

use Sprigs\ExpandableRow\ExpandableRow;

// ...

public function fields(NovaRequest $request)
    {
        return [
            // ... your other fields

            ExpandableRow::make('')
   ];
}
```

Methods
-------

[](#methods)

By default ExpandableRow creates a field that only shows on index. You can change the column name by passing it as a parameter when initializing:

### Column header

[](#column-header)

```
    ExpandableRow::make('Custom header');

```

### Toggle label

[](#toggle-label)

By default, the label next to the toggle arrow is set to 'Details'. It can be changed by calling the `toggleLabel()` method.

```
    ExpandableRow::make('')->toggleLabel('Show more')

```

### Move to actions

[](#move-to-actions)

To show the dropdown as the first option in the actions column, use the `moveToActions()` method:

```
    ExpandableRow::make('')->moveToActions();

```

[![Preview of a row expanding](/docs/4-expandable-row.gif)](/docs/4-expandable-row.gif)

*Note: using the `moveToActions()` method, will ignore the `toggleLabel` as only the arrow will be shown*

### Showing the data

[](#showing-the-data)

When initializing the ExpandableRow, by default, it shows the fields that would show in the Preview modal (any field that has the `showOnPreview()` method called).

Or it you can pass an `$array` to `expandingData()` of items of the following structure:

```
ExpandableRow::make('')
    ->expandingData(
        [
            [
                'name' => 'Custom row',
                'value' => 'Single string', // Can be a string or array of strings
            ],
            [
                'name' => 'Title of another item',
                'value' => [
                    'Array of strings',
                    'That gets displayed as a list',
                    'Keeping the stule of the preview panel tags'],
            ],
        ]
    );
```

### Showing an icon

[](#showing-an-icon)

In cases when you want to add an icon before the label, you can call `showIcon()` which accepts the Nova build in [heroicons (v1)](https://v1.heroicons.com) name, and a condition if the icon should show

```
ExpandableRow::make('')->showIcon('cube-transparent', true)
```

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity44

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

Total

5

Last Release

1156d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b60137c652aedc8d1d80321f50f77ed774b7f3f378f36660b580c1dba4f47c96?d=identicon)[Kreshnik](/maintainers/Kreshnik)

![](https://www.gravatar.com/avatar/952aaaeef19808f45866cd1debd19a0987ddac3580d0c3bae44f4162b09b8700?d=identicon)[afronorana](/maintainers/afronorana)

---

Top Contributors

[![afronorana](https://avatars.githubusercontent.com/u/19649126?v=4)](https://github.com/afronorana "afronorana (5 commits)")

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/sprigs-expandable-row/health.svg)

```
[![Health](https://phpackages.com/badges/sprigs-expandable-row/health.svg)](https://phpackages.com/packages/sprigs-expandable-row)
```

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3453.7M8](/packages/optimistdigital-nova-multiselect-field)[inspheric/nova-defaultable

Default values for Nova fields when creating resources and running resource actions.

52178.7k1](/packages/inspheric-nova-defaultable)[murdercode/nova4-tinymce-editor

Boost your Laravel Nova with the TinyMCE editor.

17186.3k1](/packages/murdercode-nova4-tinymce-editor)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11273.0k](/packages/datomatic-nova-detached-actions)[wemersonrv/input-mask

A Laravel Nova custom field text with masks on input

1198.4k](/packages/wemersonrv-input-mask)

PHPackages © 2026

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