src/components/elements/page-title
// src/components/elements/page-title/schema.yaml
$schema: http://json-schema.org/draft-07/schema#
$id: /elements/page-title
additionalProperties: false
type: object
properties:
title:
type: string
required:
- title
// src/components/elements/page-title/mocks.yaml
title: Page title
// src/components/elements/page-title/page-title.twig
{% set content %}
<h1>{{ title }}</h1>
{% endset %}
{% include "@patterns/rich-text/rich-text.twig" with {
content: content
} only %}