form-details:
  label: Details
  namespace: Atoms/Form
  use: '@atoms/form/_details.twig'
  dependencies:
    - form-element
    - form-submit
  fields:
    summary_title:
      type: text
      label: Summary title
      preview:
        faker: lorem.words
    description_content:
      type: text
      label: Description
      description: The form description.
      preview:
        faker: lorem.sentences
    children:
      type: pattern
      label: Children
      preview:
        - id: form-element
          variant: select
          fields:
            errors: ''
        - id: form-element
          variant: textfield
          fields:
            errors: ''
        - id: form-element
          variant: checkbox
          fields:
            errors: ''
        - id: form-element
          variant: textarea
          fields:
            errors: ''
        - id: form-submit
  settings:
    attributes:
      type: attributes
      label: Attributes
    summary_attributes:
      type: attributes
      label: Summary attributes
    required:
      type: boolean
      label: Required
    description_display:
      type: select
      label: Description display
      options:
        before: Before
        after: After
        invisible: Invisible
        hidden: Hidden
      preview: after
      default_value: after
