Is it possible to create a TextInput component with a prefix that is a SelectInput?

I want the prefix to be a select action. A common example of this type of usage is international phone numbers (see image for example).

Would I have to create a custom component for this?
rQkUqNefkNTSJAkAgcOdrlfFK-XEXXMouu2MFb12zyo.format-webp.webp
Solution
TextInput::make('mobile_number')
                ->label('Mobile Number')
                ->required()
                ->prefixAction(
                    Action::make('country')
                        ->icon('heroicon-o-user')
                        ->form([
                            Select::make('mobile_phone_country')
                                ->options(['test' => 'test'])
                        ])
                )
                ->tel(),
Was this page helpful?