content icon indicating copy to clipboard operation
content copied to clipboard

ContentRenderer without wrapper div

Open MickL opened this issue 2 months ago • 0 comments

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 <ContentRenderer> 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 <MDCRenderer>

MickL avatar Oct 19 '25 22:10 MickL