<div class="panel panel-success">
<div class="panel-heading">@Title</div>
<div class="panel-body">@PanelContent</div>
</div>
@functions {
public string Title { get; set; }
public RenderFragment **PanelContent** { get; set; }
}
I got a fault when trying to execute this example. After a discussion in an issue report https://github.com/aspnet/Blazor/issues/686 it was founded the PanelConent field's name is incorrect. It is suggested to rename this to ChildContent. Unfortunatelly, there are still some errors with this name using. As a result I'm not sure how this example should be improved.