Content above the divider
Content below the divider
razor
<p>Content above the divider</p>
<FodDivider/>
<p>Content below the divider</p>A themable horizontal or vertical divider component for visual separation. Supports orientation, inset spacing, custom thickness, and color overrides.
Basic horizontal divider for separating content sections.
Content above the divider
Content below the divider
<p>Content above the divider</p>
<FodDivider/>
<p>Content below the divider</p>Dividers can be horizontal (default) or vertical.
Horizontal (Default)
Above
Below
Vertical
<FodDivider Orientation="Orientation.Horizontal"/>
<FodDivider Orientation="Orientation.Vertical"/>Control how the divider is inset from container edges.
None (edge-to-edge)
Padding (respects container padding)
Content (aligns with content)
<FodDivider Inset="DividerInset.None"/>
<FodDivider Inset="DividerInset.Padding"/>
<FodDivider Inset="DividerInset.Content"/>Override default thickness and color with custom values.
Thickness: 2px
Color: #0066cc
Combined
<FodDivider Thickness="2px"/>
<FodDivider Color="#0066cc"/>
<FodDivider Thickness="3px" Color="var(--color-primary-base)"/>Common divider patterns for lists and section breaks.
Content for the first section.
Content for the second section.
@* List separators *@
<div class="list-item">Item 1</div>
<FodDivider Inset="DividerInset.Padding"/>
<div class="list-item">Item 2</div>
@* Vertical separator in toolbar *@
<FodButton>Save</FodButton>
<FodDivider Orientation="Orientation.Vertical"/>
<FodButton>Delete</FodButton>FodDivider component properties and their descriptions.