User475983607 posted
SaeedP
How to disable blazor default layout?
According to the docs you can set the layout to whatever you like; https://docs.microsoft.com/en-us/aspnet/core/blazor/layouts?view=aspnetcore-3.1
Just create an empty component with the following lines of code. Name the component EmptyLayout.razor.
@inherits LayoutComponentBase
@Body
Then reference the EmptyLayout component in your Blazor page.
@layout EmptyLayout
@page "/htmlsnippet"
<h3>HtmlSnippet</h3>
@code {
}