this input enables you to render a select next to an input in a seamless fashion.
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"
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'
])
),
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.