marvinosswald / filament-input-select-affix
this input enables you to render a select next to an input in a seamless fashion
Fund package maintenance!
marvinosswald
Installs: 59 585
Dependents: 1
Suggesters: 0
Security: 0
Stars: 21
Watchers: 2
Forks: 4
Open Issues: 1
Requires
- php: ^8.1 | ^8.2
- filament/filament: ^3.0
- illuminate/contracts: ^10.0|^11.0
- spatie/laravel-package-tools: ^1.16.1
Requires (Dev)
- nunomaduro/collision: ^v7.8.1
- orchestra/testbench: ^v8.9.1
- pestphp/pest: ^v2.24.3
- pestphp/pest-plugin-laravel: v2.2.0
- pestphp/pest-plugin-livewire: v2.1.0
- phpunit/phpunit: ^10
README
this input enables you to render a select next to an input in a seamless fashion.
Installation
You can install the package via composer:
composer require marvinosswald/filament-input-select-affix
Optionally, you can publish the views using
php artisan vendor:publish --tag="filament-input-select-affix-views"
Usage
TextInputSelectAffix::make('weight_value') ->numeric() ->select(fn() => Forms\Components\Select::make('weight_unit') ->extraAttributes([ 'class' => 'w-[72px]' // if you want to constrain the selects size, depending on your usecase ]) ->options([ 'mm' => 'mm', 'm' => 'm' ]) ),
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.