I'd like to have an ExpansionPanel component where I can declare my desired panel instances and their content in the markup.
Similar to https://www.telerik.com/kendo-angular-ui/components/layout/expansionpanel/
In the meantime I created this:
ExpansionPanel.razor:
</style>
Usage:
I agree,
I have looked at the PanelBar component, but it (to my knowledge) doesnt take @ChildContent.
I would like to have onw that doesnt need backing data.
Please find inspiration on : Expansion Panels - MudBlazor
Something like:
<MudExpansionPanels MultiExpansion="true"> <MudExpansionPanel Text="Panel One"> Panel One Content </MudExpansionPanel> <MudExpansionPanel Text="Panel Two"> Panel Two Content </MudExpansionPanel> <MudExpansionPanel Text="Panel Three"> Panel Three Content </MudExpansionPanel> <MudExpansionPanel Text="Panel Four"> Panel Four Content </MudExpansionPanel> </MudExpansionPanels>