--- productId: material-ui title: React Divider component components: Divider githubLabel: 'scope: divider' materialDesign: https://m2.material.io/components/dividers githubSource: packages/mui-material/src/Divider --- # Divider

The Divider component provides a thin, unobtrusive line for grouping elements to reinforce visual hierarchy.

{{"component": "@mui/docs/ComponentLinkHeader"}} ## Introduction The Material UI Divider component renders as a dark gray `
` by default, and features several useful props for quick style adjustments. {{"demo": "IntroDivider.js", "bg": true}} ## Basics ```jsx import Divider from '@mui/material/Divider'; ``` ### Variants The Divider component supports three variants: `fullWidth` (default), `inset`, and `middle`. {{"demo": "DividerVariants.js", "bg": true}} ### Orientation Use the `orientation` prop to change the Divider from horizontal to vertical. When using vertical orientation, the Divider renders a `
` with the corresponding accessibility attributes instead of `
` to adhere to the WAI-ARIA [spec](https://www.w3.org/TR/wai-aria-1.2/#separator). {{"demo": "VerticalDividers.js", "bg": true}} ### Flex item Use the `flexItem` prop to display the Divider when it's being used in a flex container. {{"demo": "FlexDivider.js", "bg": true}} ### With children Use the `textAlign` prop to align elements that are wrapped by the Divider. {{"demo": "DividerText.js", "bg": true}} ## Customization ### Use with a List When using the Divider to separate items in a List, use the `component` prop to render it as an `
  • `—otherwise it won't be a valid HTML element. {{"demo": "ListDividers.js", "bg": true}} ### Icon grouping The demo below shows how to combine the props `variant="middle"` and `orientation="vertical"`. {{"demo": "VerticalDividerMiddle.js", "bg": true}} ## Accessibility Due to its implicit role of `separator`, the Divider, which is a `
    ` element, will be announced by screen readers as a "Horizontal Splitter" (or vertical, if you're using the `orientation` prop). If you're using it as a purely stylistic element, we recommend setting `aria-hidden="true"` which will make screen readers bypass it. ```js