Examples
By default the panels share a group, so opening one closes the others; IsExpanded opens one up front.
Can I change my plan later?
Where is my data stored?
Can I get a refund?
MultiExpansion lets several panels stay open; Icon adds a leading symbol.
Plan
Payment
Privacy
TitleContent replaces the plain Text title with any markup.
Billing revamp Q4
Mobile app Q1
SSO for Enterprise Q2
API
<ExpansionPanels>
DaisyBlazorParameters
- Dense bool= false
Makes every child panel dense (tighter title and content padding).
- Elevation int= 1
Shadow depth of each panel, on Paper's scale: 0 none, 1 shadow-sm, 2-3 shadow, up to 6 shadow-md, up to 12 shadow-lg, above that shadow-xl.
- MultiExpansion bool= false
Allows several panels open at once; when false (default) panels form a single-open accordion.
- Class string= null
Extra CSS classes merged onto the root element.
- Style string= null
Inline CSS styles applied to the root element.
Content
- ChildContent RenderFragment
The ExpansionPanel children of the group.
<ExpansionPanel>
DaisyBlazorParameters
- Dense bool= false
Tightens the title and content padding; also on when the parent Dense is set.
- Expanded bool= false
Alias of IsExpanded for MudBlazor compatibility; reads and writes the same state.
- Icon string= null
Icon name rendered before the header text in the collapse-title.
- IsExpanded bool= false
Whether the panel is expanded. Both MudBlazor names are supported.
- Text string= null
Plain header text shown in the collapse-title when TitleContent is not set.
- Class string= null
Extra CSS classes merged onto the root collapse element.
- Style string= null
Inline CSS styles applied to the root <details> element.
Events
- ExpandedChanged EventCallback<
bool> Alias of IsExpandedChanged for MudBlazor compatibility; enables two-way binding of Expanded.
- IsExpandedChanged EventCallback<
bool> Raised with the new state when the user opens or closes the panel; enables two-way binding of IsExpanded.
Content
- ChildContent RenderFragment
Content shown in the daisyUI collapse-content area when the panel is expanded.
- TitleContent RenderFragment
Custom header content for the collapse-title; takes precedence over Text.
From MudExpansionPanels
ExpansionPanels keeps MudExpansionPanels's parameter names, so most markup moves over by
dropping the Mud prefix. See the migration guide for the shared enums, icons and services.