Skip to content
This repository was archived by the owner on Aug 14, 2026. It is now read-only.
This repository was archived by the owner on Aug 14, 2026. It is now read-only.

Can blocks have other blocks as children, or only elements are allowed? #224

Description

@andrejesuscm

Imagine the following component:

<div class="card">
    <div class="heading">...</div>
    <div class="card__body">...</div>
    <div class="card__footer">...</div>
</div>

Is it allowed to have another block heading as children of another block, or should we wrap it in another element:

<div class="card">
    <div class="card_heading">
        <div class="heading">...</div>
    </div>
    <div class="card__body">...</div>
    <div class="card__footer">...</div>
</div>

Thanks for the clarification.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions