Skip to content

ContentRenderer without wrapper div #3577

@MickL

Description

@MickL

Is your feature request related to a problem? Please describe

Using ContentRenderer it creates a wrapper element which may break existing layout (e.g. flex or grid):

<div class="" data-content-id="mainpage/index.md">
 ...
</div>

It seems like setting prop tag to false works, but I dont know if this is a feature or a bug. At least TypeScript complains + I get a lot of warnings:

Invalid prop: type check failed for prop "tag". Expected String, got Boolean with value false. at
Extraneous non-props attributes (data-content-id) were passed to component but could not be automatically inherited because component renders fragment or text or teleport root nodes. at

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions