How to access webform field labels in a twig template? The YAML below represents a webform. Theming is simple using the twig template also found below, but the label for email is inline with the input field by default. How can the labels in the webform be accessed through twig for further theming?

Webform YAML

name:
  '#title': Name
  '#type': textfield
  '#required': true
  '#default_value': '[current-user:display-name]'
email:
  '#title': Email
  '#type': email
  '#required': true
  '#default_value': '[current-user:mail]'
subject:
  '#title': Subject
  '#type': textfield
  '#required': true
  '#test': 'Testing contact webform from [site:name]'
message:
  '#title': Message
  '#type': textarea
  '#required': true
  '#test': 'Please ignore this email.'
actions:
  '#type': webform_actions
  '#title': 'Submit button(s)'
  '#submit__label': 'Send message'


webform--contact.html.twig

&lt;div class="container"&gt;
    &lt;form{{ attributes }}&gt;
        &lt;div class="row"&gt;
            &lt;div class="col-md-6"&gt;
            {{ element.elements.name }}
            {{ element.elements.email }}
            {{ element.elements.subject }}
            &lt;/div&gt;
            &lt;div class="col-md-6"&gt;
            {{ element.elements.message }}
            {{ element.form_token }}
            {{ element.form_build_id }}
            {{ element.form_id }}
            {{ element.elements.actions }}
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/form&gt;
&lt;/div&gt;
Your last comment:


  Well that isn't very intuitive. It would be nice to just access
  everything directly in the twig template.


OK, then try different templates:

When the form theme wrapper is executed the inside of the wrapper is already rendered in {{ children }}. Don't try to render the form again, use this template only for the form tag and the outside container:

webform--contact.html.twig

&lt;div class="container"&gt;
   &lt;form{{ attributes }}&gt;
   {{ title_prefix }}
   {{ children }}
   {{ title_suffix }}
   &lt;/form&gt;
&lt;/div&gt;


Use for the inside of the form the #theme template itself:

webform-submission-form--contact.html.twig

    &lt;div class="row"&gt;
        &lt;div class="col-md-6"&gt;
        {{ form.name }}
        {{ form.email }}
        {{ form.subject }}
        &lt;/div&gt;
        &lt;div class="col-md-6"&gt;
        {{ form|without('name', 'email', 'subject') }}
        &lt;/div&gt;
    &lt;/div&gt;


Finally you can theme the form element in form-element--webform-email.html.twig