materialuiupgraded
Version:
Material-UI's workspace package
26 lines (16 loc) • 775 B
Markdown
title: Divider React component
components: Divider
# Dividers
<p class="description">A divider is a thin line that groups content in lists and layouts.</p>
[Dividers](https://material.io/design/components/dividers.html) separate content into clear groups.
## List Dividers
The divider renders as a `<hr>` by default.
You can save rendering this DOM element by using the `divider` property on the `ListItem` component.
{{"demo": "pages/demos/dividers/ListDividers.js"}}
## Inset Dividers
The following example demonstrates the `inset` property.
We need to make sure the `Divider` is rendered as a `li` to match the HTML5 specification.
The example shows two ways of achieving this.
{{"demo": "pages/demos/dividers/InsetDividers.js"}}