How to customize select option label (different when open/closed)

Is there a way to have a different render for the "preview" (when the select is closed) and for when the select is open ?

Here is my code

Filament\Forms\Components\Select::make('ethnicity')
    ->label('Groupe ethnique')
    ->native(false)
    ->searchable()
    ->allowHtml()
    ->options(EthnicityEnum::class)
    ->default(EthnicityEnum::EUROPEAN_WHITE)
    ->live()
    ->required(),
image.png
Was this page helpful?