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/
Until this component is implemented, the <details> and <summary> HTML 5 elements can be used to quickly cover simple cases:
<details>: The Details disclosure element - HTML: HyperText Markup Language | MDN (mozilla.org)
I also need that component :(
It's such a pity that it still doesn't exist. Has this really been in Unplanned status for all that time?
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>