PHPackages                             versioon/nova-inline-badge-field - 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. versioon/nova-inline-badge-field

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

versioon/nova-inline-badge-field
================================

A Laravel Nova inline badge field.

1.0.0(1w ago)06↑2400%MITPHPPHP &gt;=8.0

Since Jun 2Pushed 1w agoCompare

[ Source](https://github.com/Versioon/nova-inline-badge-field)[ Packagist](https://packagist.org/packages/versioon/nova-inline-badge-field)[ RSS](/packages/versioon-nova-inline-badge-field/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Nova Inline Badge Field
=======================

[](#nova-inline-badge-field)

[![Latest Version on Packagist](https://camo.githubusercontent.com/61a5007ead00a60a4ab33b86dc15f238f614a3e5945152c7671550ce0c2307fc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f76657273696f6f6e2f6e6f76612d696e6c696e652d62616467652d6669656c642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/versioon/nova-inline-badge-field)[![Total Downloads](https://camo.githubusercontent.com/402e659bf410d97b258dff36995b211c4a6e3be30f0815060e3d4de1a9653be0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f76657273696f6f6e2f6e6f76612d696e6c696e652d62616467652d6669656c642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/versioon/nova-inline-badge-field)

This [Laravel Nova](https://nova.laravel.com/) package adds an inline badge field to Nova's arsenal of fields.

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

[](#requirements)

- `php: >=8.0`
- `laravel/nova: ^5.0`

Features
--------

[](#features)

A `Select` field on Form views that renders as a colored badge on Index and Detail views. Clicking the badge opens a native ``; picking a value sends a Nova update request for the resource and re-colors the badge inline — no need to open the edit form.

[![Demo](docs/demo.gif)](docs/demo.gif)

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

[](#installation)

Install the package in to a Laravel app that uses [Nova](https://nova.laravel.com) via composer:

```
composer require versioon/nova-inline-badge-field
```

Usage
-----

[](#usage)

### General

[](#general)

The field extends Nova's `Select` field, so `options()` defines the dropdown choices used on both the form and the inline editor. `map()` maps each value to a badge type (`success`, `info`, `danger`, `warning`, or a custom type registered via `types()`).

```
use Versioon\NovaInlineBadgeField\InlineBadge;

public function fields(Request $request) {
    InlineBadge::make('Status')
        ->options([
            'draft' => 'Draft',
            'published' => 'Published',
            'archived' => 'Archived',
        ])
        ->map([
            'draft' => 'warning',
            'published' => 'success',
            'archived' => 'danger',
        ]),
}
```

### Customizing badges

[](#customizing-badges)

The following `Badge`-style helpers are available in addition to everything inherited from `Select`:

```
InlineBadge::make('Status')
    ->options([...])

    // Map field values to built-in or custom badge types.
    ->map(['draft' => 'warning', 'published' => 'published'])

    // Register custom badge types and their CSS classes.
    ->types([
        'published' => 'bg-green-100 text-green-600 dark:bg-green-500 dark:text-green-900',
    ])

    // Override the label shown on the badge per value...
    ->labels(['published' => 'Live'])
    // ...or resolve it with a callback.
    ->label(fn ($value) => ucfirst($value))

    // Show an icon on the badge (defaults provided for the built-in types).
    ->withIcons()
    ->icons(['published' => 'check-circle']),
```

If a value isn't present in `map()`/`types()`, the badge renders without a color class. Labels fall back to the matching `options()` label, then to the raw value.

Credits
-------

[](#credits)

- [Tarvo Reinpalu](https://github.com/tarpsvo)

License
-------

[](#license)

Nova Inline Badge Field is open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance98

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

7d ago

### Community

Maintainers

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

---

Top Contributors

[![Tarpsvo](https://avatars.githubusercontent.com/u/2018660?v=4)](https://github.com/Tarpsvo "Tarpsvo (3 commits)")

---

Tags

laravelfieldselectinlinebadgenova

### Embed Badge

![Health badge](/badges/versioon-nova-inline-badge-field/health.svg)

```
[![Health](https://phpackages.com/badges/versioon-nova-inline-badge-field/health.svg)](https://phpackages.com/packages/versioon-nova-inline-badge-field)
```

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3443.6M7](/packages/optimistdigital-nova-multiselect-field)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17818.7k](/packages/markwalet-nova-modal-response)[outl1ne/nova-inline-text-field

A Laravel Nova inline text field.

23284.1k2](/packages/outl1ne-nova-inline-text-field)[optimistdigital/nova-inline-text-field

A Laravel Nova inline text field.

2322.3k](/packages/optimistdigital-nova-inline-text-field)[optimistdigital/nova-notes-field

This Laravel Nova package adds a notes field to Nova's arsenal of fields.

52142.9k](/packages/optimistdigital-nova-notes-field)[outl1ne/nova-color-field

A Laravel Nova Color Picker field.

26259.6k](/packages/outl1ne-nova-color-field)

PHPackages © 2026

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