logo

Information

Folder
src/components/elements/logo

Files

Schema
// src/components/elements/logo/schema.yaml

$schema: http://json-schema.org/draft-07/schema
$id: /elements/logo
type: object
required:
  - url
  - label
  - width
  - height
additionalProperties: false
properties:
  class:
    type: string
  url:
    type: string
    format: uri-reference
  label:
    type: string
  width:
    type: number
  height:
    type: number
Mocks
// src/components/elements/logo/mocks.yaml

url: /
label: Logo
width: 273
height: 339
Template
// src/components/elements/logo/logo.twig

<a
	class="{{ class }}"
	href="{{ url }}"
	aria-label="{{ label }}"
>
	<img
		src="{{ url('theme://build/assets/images/logo.svg') }}"
		alt="Karoline Scharf Goldschmiedin Logo"
		width="{{ width }}"
		height="{{ height }}"
	>
</a>

Variants

default
Open