Free
Pro

Divider

The visual divider is a layout element that helps to separate pieces of content into clear groups, sections, options, or parts. This way, it helps a designer organize the page according to the typical patterns of visual perception and makes the layout clearer and more digestible for users.

free

Playground

HTML

<ply-divider>Divider</ply-divider>

Horizontal Divider

By default render horizontal divider when use <ply-divider></ply-divider>

Section 1

Section 2

Section 3

Vertical Divider

Use attribute vertical="true", as well with vertical we need to specify the height of the divider with Tailwindcss class name.

Section 1

Section 2

Section 3

Installation

Run the following command to add this component to your project:

bash

npx ply-ui-cli add divider

API Reference

For AI agents

Copy a prompt with the registry name, CLI install, and import — or add the Ply MCP server.

bash

npx -y ply-ui-mcp

Ply provides standalone components. Import the exact elements you want to use into your component.

typescript (Example)

// Install: npx ply-ui-cli add divider
// Paths are relative to aliases.components (default: src/app/components)
import { DividerComponent } from './divider/divider.component';

@Component({
  selector: 'app-your-component',
  imports: [
    DividerComponent
  ],
  template: `...`
})
export class YourComponent {}

API for divider — generated from JSDoc in the library source.

API reference for divider
APIMemberTypeDefaultDescription
ply-dividerclassstring''Additional host CSS classes (merged via cn()).
ply-dividerverticalbooleanfalseIf true, renders the divider vertically.