You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Components/Components/ExpansionPanel/ExpansionPanel.razor

27 lines
774 B

@namespace Connected.Components
@inherits UIComponent
<div @attributes="UserAttributes" class="@Classname" style="@Style">
<div class="mud-expand-panel-header" @onclick="ToggleExpansion">
<div class="mud-expand-panel-text">
@if (TitleContent != null)
{
@TitleContent
}
else
{
@Text
}
</div>
@if (!HideIcon)
{
<Icon Icon="@Icon" class="@(IsExpanded? "mud-expand-panel-icon mud-transform" : "mud-expand-panel-icon")" />
}
</div>
<Collapse Expanded="@_collapseIsExpanded" MaxHeight="@MaxHeight">
<div class="@PanelContentClassname">
@ChildContent
</div>
</Collapse>
</div>