Back to components

Divider

zyra-divider

Horizontal and vertical separators for organizing content sections, form layouts, and navigation groups.

Component preview

Explore the available states and the real library behavior for this component.

zyra-divider Playground

Control every input live and see the result instantly

Controls
orientation
variant
align
label
width
Preview
Above contentBelow content
Generated Code
<zyra-divider
  label="or"
/>
Line Styles
solid
dashed
dotted
Label Alignment
Real World Examples

Sign in with your account

Settings sections
ProfileNotificationsSecurityBilling
UsersRolesPermissions

Copy-paste example

Drop this into your Angular standalone component and it works out of the box.

divider.demo.ts
import { Component } from '@angular/core';
import { ZyraDivider } from 'zyra-ng-ui';

@Component({
  selector: 'app-demo',
  standalone: true,
  imports: [ZyraDivider],
  template: `
    <zyra-divider label="or" />
  `,
})
export class DemoComponent {}

Variants

All the visual modes and states available for this component.

solid

Default solid 1px line

dashed

Dashed line for softer separation

dotted

Dotted line for subtle dividers

vertical

Vertical orientation for inline layouts

API

All inputs and configuration options for zyra-divider.

PropTypeDefaultDescription
labelstring-Optional centered text label (e.g. "or")
orientation'horizontal' | 'vertical''horizontal'Line direction
style'solid' | 'dashed' | 'dotted''solid'Line stroke style

Accessibility

Built to meet WCAG 2.0 AA. These notes cover the key ARIA, keyboard, and interaction behaviours.

  • Renders with role="separator" for screen reader context
  • Vertical dividers should have aria-orientation="vertical"
  • When used decoratively, add aria-hidden="true"