form

Information

Folder
src/components/template-components/search-results/form

Files

Schema
// src/components/template-components/search-results/form/schema.yaml

$schema: http://json-schema.org/draft-07/schema
$id: /template-components/search-results/form
additionalProperties: false
type: object
required:
  - action
  - content
properties:
  action:
    type: string
  content:
    type: string
  attributes:
    type: string
Mocks
// src/components/template-components/search-results/form/mocks.yaml

action: action
content:
  $render:
    - $tpl: template-components/search-results/form/input
      $ref: template-components/search-results/form/input
    - $tpl: elements/button
      $ref: elements/button
      label: Search
      type: submit
      icon: search
      icon_only: true
Template
// src/components/template-components/search-results/form/form.twig

<form{{ attributes }} class="SearchResultsForm" action="{{ action }}">
	{{ content }}
</form>

Variants

default
Open