Drupal 8 Webform Composite fieldset Is there a way to add fieldsets inside of a custom composite? Not looking to add anything repeatable, just simply group the fields together.

This get's the fieldset to show but I don't know how to add fields as children.

$elements['grouped_fields'] = [
  '#type' =&gt; 'fieldset',
  '#title' =&gt; t('Grouped Fields')
];
Place the fields inside of the fieldset:

$elements['grouped_fields']['field1'] = [
  '#type' =&gt; 'textfield',
  '#title' =&gt; t('Field 1'),
];
$elements['grouped_fields']['field2'] = [
  '#type' =&gt; 'textfield',
  '#title' =&gt; t('Field 2'),
];
// ...