MudExpansionPanel API

Properties
Name Type Default Description
Behavior
ChildContent
RenderFragment
null Child content of component.
Disabled
bool
False If true, the component will be disabled.
IsExpanded
bool
False Expansion state of the panel (two-way bindable)
IsInitiallyExpanded
bool
False Sets the initial expansion state. Do not use in combination with IsExpanded. Combine with MultiExpansion to have more than one panel start open.
Text
string
null The text to be displayed in the expansion panel.
TitleContent
RenderFragment
null RenderFragment to be displayed in the expansion panel which will override header text if defined.
Appearance
Dense
bool
False If true, removes vertical padding from childcontent.
DisableGutters
bool
False If true, the left and right padding is removed from childcontent.
HideIcon
bool
False If true, expand icon will not show
Icon
string
Custom hide icon.
MaxHeight
int?
null Explicitly sets the height for the Collapse element to override the css default.
Common
Class
string
null User class names, separated by space.
Style
string
null User styles, applied on top of the component's own classes and styles.
Tag
object
null Use Tag to attach any user data object to the component for your convenience.
UserAttributes
Dictionary<string, object>
UserAttributes carries all attributes you add to the component that don't match any of its parameters. They will be splatted onto the underlying HTML tag.
EventCallbacks
Name Type Description
IsExpandedChanged EventCallback<bool> Raised when IsExpanded changes.
Methods
Name Parameters Return Description
Collapse(bool update_parent)
bool update_parent
Dispose()
Expand(bool update_parent)
bool update_parent
ToggleExpansion()
An unhandled error has occurred. Reload 🗙