Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

sayed_laravel's avatar

Customize selected options container class in Multi-Select From

I want to add "w-full justify-between" class to my selected option of multi-select input

does anyone know how can I do that ?

0 likes
2 replies
Snapey's avatar

Show your input?/ You cannot style the browser's native dropdown?

sayed_laravel's avatar

@Snapey this is my multi-select component and I want every selected option to take the whole width and have the justify-between style as well

Forms\Components\MultiSelect::make('values') ->label('Specifications') ->getSearchResultsUsing(fn($search) => self::product_specs($search)) ->getOptionLabelsUsing(function($values) { return Specification::query()->whereIn('id', $values)->get() ->mapWithKeys(fn($specs) => [$specs->id => "$specs->name: $specs->value"]); }) ->searchable()

thanks, I am new in Filament

Please or to participate in this conversation.