vicmans/filament-number-input

Input number counter quantity field for Filament
6,010 2
Install
composer require vicmans/filament-number-input
Latest Version:v1.0.0
PHP:^8.1
License:MIT
Last Updated:Nov 24, 2025
Links: GitHub  ·  Packagist
Maintainer: vicmans

Number Input Counter for Filament

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Just another quantity input number counter field for Filament.

Installation

You can install the package via composer:

composer require vicmans/filament-number-input

Add the following line to tailwind.config.js inside the content section

export default {
  presets: [],
  content: [
    ...
    './vendor/vicmans/filament-number-input/resources/views/*.blade.php',
  ],
  theme: {
    extend: {},
  },
  plugins: [],
}

Optionally, you can publish the views using

php artisan vendor:publish --tag="filament-number-input-views"

and you can edit the component.

Usage

use Vicmans\FilamentNumberInput\FilamentNumberInput;

protected function form(): array
{
    return [
        ...
        FilamentNumberInput::make('quantity')
            ->minValue(1)
            ->maxValue(20)
            ->minusIcon('heroicon-o-arrow-left')
            ->default(5);
        ...
    ];
}

Methods and Props

Method Description Default Value Usage
step Set interval for number input field 1 step(2)
default Default value 0 default(5)
maxValue The max value that allow the user to input maxValue(10)
minValue The min value that allow the user to input minValue(2)
disableManualInput User can type the input false disableManualInput() This disable manual input, user can change the value using buttons.
minusIcon Decrease button icon minusIcon('heroicon-o-minus')
plusIcon Increase button icon plusIcon('heroicon-o-plus')

Other methods from Filament Forms Field.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

lara-zeus/list-group

Zeus List is a filamentphp infolist layout component to group items with links,...

72,848 4
silvanite/novafieldcheckboxes

A Laravel Nova field to display a number of multi-select options using checkboxe...

881,649 67
helmut/forms

A customisable and testable form abstraction library.

19 0
lara-zeus/qr

Zeus Qr Code Input to generate Qr Code with designing options for filamentPHP

73,123 58