Skip to content

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

@andrejesuscm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions