Components
Divider
Hairline separator, horizontal or vertical. `block` adds the spacing of a divider in a document.
Usage
Use it to:
- separate groups in menus, toolbars and documents
Don’t use it to:
- adding space between items (use Stack
gap) - framing a section (use a Card or border)
Installation
Install the package (React 19):
terminal
terminal
terminal
Import the styles once, in your app entry or root layout:
/src/main.tsx
Use it anywhere inside your app's <Theme> (see Installation):
/src/DividerExample.tsx
Examples
Divider block
Above the divider.
Below the divider.
Vertical
SharePublish
Dark theme
API Reference
Divider
A <div role="separator">; supports all of its props. Adds:
| Prop | Type | Default |
|---|---|---|
orientation | "horizontal""vertical" | "horizontal" |
block | boolean | false |
Accessibility
role="separator"witharia-orientation; not focusable. Purely visual spacing does not need a Divider: use Stack gaps.
© 2026 Motion. Internal documentation.