Skip to content
Snippets Groups Projects
Commit d8a804bb authored by Michael Fanini's avatar Michael Fanini
Browse files

Issue #3502872 by g4mbini: [2.0.x] add Heading group component

parent 20743edb
No related branches found
No related tags found
1 merge request!1Issue #3502872 by g4mbini: [2.0.x] add Heading group component
name: Heading group
description: "Inside a <hgroup>, margins are collapsed, and the :last-child is muted."
group: Content
links:
- "https://picocss.com/docs/typography#heading-group"
slots:
title:
title: Title
description: "Heading group title."
subtitle:
title: Subtitle
description: "Heading group subtitle."
props:
type: object
properties:
heading_level:
title: "Heading level"
type: integer
enum:
- 2
- 3
- 4
- 5
- 6
"meta:enum":
2: "h2 (Default)"
3: h3
4: h4
5: h5
6: h6
name: Default
slots:
title: Get inspired with CSS
subtitle: How to use CSS to add glam to your Website?
props:
heading_level: 2
{% set heading_level = heading_level|default(2) %}
<hgroup {{ attributes }}>
{% if title %}
<h{{ heading_level }}>{{ title }}</h{{ heading_level }}>
{% endif %}
{% if subtitle %}
<p>{{ subtitle }}</p>
{% endif %}
</hgroup>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment