Morpha UI
ComponentsLayout

Separator

A visual divider between content.

Overview

A separator draws a thin line between groups of content, horizontally or vertically.

Morpha UIAn open component library.
Docs
Components
CLI
$ npx morpha-ui add separator

Installation

Morpha UI components are distributed via the Morpha CLI (coming in a later step): npx morpha-ui add separator. In the meantime, since this is the base shadcn component, you can also add it directly:

npx shadcn@latest add separator

API Reference

Prop

Type

Accessibility

  • Keep decorative (the default) when the line is purely visual — it is then hidden from assistive tech.
  • For a meaningful divider, set decorative={false}; it then exposes role="separator" with its orientation.

On this page