How to customize the default search block form template? How can I customize the default search block form template, I now use below template to display a search form block, but this code doesn't allow me to edit and customize each part of this form separately and doesn't have any flexibility.

form--search-block-form.html.twig

&lt;form{{ attributes.addClass('search-form', 'search-block-form') }}&gt;
  {{ children }}
&lt;/form&gt;


and then print in my theme by below code:

{{ page.search_box }}


Is there any better template name suggestion with more variables and flexibility in customization?
The search block is provided by the core module Search. If you install this module the block will be available in the block layout, when you place a block.

Probably you have already done this by installing the standard profile.

To customize the search form you can use a form alter hook.

For example put this function in mytheme.theme to change the search button:

function mytheme_form_alter(&amp;$form, $form_state) {
  if ( $form['#form_id'] == 'search_block_form' ) {
    $form['actions']['submit']['#value'] = t('Search my Website');
  }
}