form-fieldset:
  label: Fieldset
  namespace: Atoms/Form
  use: '@atoms/form/_fieldset.twig'
  dependencies:
    - form-element
    - form-submit
  fields:
    legend_title:
      type: text
      label: Legend 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
    legend_attributes:
      type: attributes
      label: Legend attributes
    content_attributes:
      type: attributes
      label: Content attributes
    required:
      type: boolean
      label: Required
    no_card:
      type: boolean
      label: No card styling
    title_display:
      type: select
      label: Label display
      options:
        before: Before
        inline: Inline
        invisible: Invisible
        hidden: Hidden
      preview: before
      default_value: before
    description_display:
      type: select
      label: Description display
      options:
        before: Before
        after: After
        invisible: Invisible
        hidden: Hidden
      preview: after
      default_value: after
