#7212·MudBlazor

Allow content inside MudDivider

Author: danielchalmersCreated Jul 15, 2023Updated Sep 28, 2026
Labelsenhancementgood first issue

Feature request type

Enhance component

Component name

MudDivider

Is your feature request related to a problem?

No response

Describe the solution you'd like

Allow arbitrary content inside a MudDivider, splitting it into two even parts.

razor
@if (ChildContent == null)
{
	<MudDivider />
}
else
{
	<div class="d-flex align-center">
		<MudDivider Style="width: auto;height: auto;" />
		@ChildContent
		<MudDivider Style="width: auto;height: auto;" />
	</div>
}

@code {
	[Parameter]
	public RenderFragment ChildContent { get; set; }
}
razor
<MudDivider><b>Developer tools</b></MudDivider>

image

Have you seen this feature anywhere else?

No response

Describe alternatives you've considered

No response

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct