Skip to content
Snippets Groups Projects

Issue #3347672: Create new SDC component for Umami (card view mode)

Merged Issue #3347672: Create new SDC component for Umami (card view mode)
2 unresolved threads
Merged Ivan Berdinsky requested to merge issue/drupal-3347672:3347672-sdc-umami-card-alt into 11.x
2 unresolved threads
Files
15
# This is so your IDE knows about the syntax for fixes and autocomplete.
$schema: https://git.drupalcode.org/project/drupal/-/raw/10.1.x/core/modules/sdc/src/metadata.schema.json
# The human readable name.
name: Card
# Status can be: "experimental", "stable", "deprecated", "obsolete".
status: experimental
# Schema for the props. We support www.json-schema.org. Learn more about the
# syntax there.
props:
type: object
properties:
attributes:
type: Drupal\Core\Template\Attribute
title: Attributes
description: Wrapper attributes.
html_tag:
type: string
title: HTML tag for wrapper
# Limit the available options by using enums.
enum:
- article
- div
# Provide a default value
default: article
# Slots always hold arbitrary markup. We know that beforehand, so no need for
# a schema for slots.
slots:
# The key is the name of the slot. In your template you will use
# {% block content %}.
content:
title: Content
required: true
description: The card content.
Loading