<layout:divider>
AJAX
ajax:delayedload ajax:event ajax:navigation ajax:region
Data
data:calendar data:column data:eventrepeater data:postrepeater data:productbrandrepeater data:productcategoryrepeater data:productrepeater data:repeater data:table data:template data:tree
Forms
forms:address forms:captcha forms:checkbox forms:checkboxgroup forms:codeeditor forms:combobox forms:datepicker forms:dialogbox forms:editbox forms:fileupload forms:form forms:hidden forms:money forms:officeuseregion forms:option forms:password forms:paymentmethod forms:radiobutton forms:radiobuttongroup forms:row forms:searchbox forms:signature forms:slider forms:spinbox forms:submitbutton forms:submitimage forms:submitlink forms:successcontent forms:textarea forms:timepicker
Layout
layout:divider
ATTRIBUTES
EXAMPLES
layout:gallery layout:productgallery layout:rotator layout:stepper layout:stepperpanel layout:tablist layout:tablistitem
Logic
logic:dependency logic:else logic:if logic:include logic:parse logic:variable
Navigation
navigation:breadcrumbs navigation:item navigation:primary navigation:secondary
Personalisation
personalisation:firstname personalisation:fullname personalisation:lastname personalisation:other
Standard
standard:embed standard:icon standard:image standard:link standard:script standard:tooltip standard:video
Templates
templates:button templates:card templates:column templates:fancybox templates:faq templates:flexlayout templates:header templates:row templates:section templates:styles templates:teammember templates:testimonial
Regions
regions:content regions:contentadditional regions:security regions:togglable
Third Party
thirdparty:googlemap thirdparty:googlemapmarker

`<layout:divider />`

A layout element for rendering decorative SVG dividers between sections or content blocks.
Creates visual transitions using wave patterns, curves, triangles, or custom SVG shapes.

The divider automatically positions itself at the top or bottom edge of the nearest ancestor container marked with data-layout-divider-container attribute. It uses shadow DOM for style encapsulation and SVG pattern-based rendering for perfect horizontal tiling without gaps.

Key features:
  • Pattern-based tiling with configurable repeat count
  • Color override or preservation of original SVG colors
  • Responsive height with any CSS unit
  • Horizontal flipping for design variety
  • Support for both built-in and custom uploaded SVG files

Content

none
This element does not contain child content.

Attributes

- `id`
string
Give this control a unique id. Can be accessed in the client DOM (eg, document.getElementById('myid') or in the server DOM using [? $myid ?] or [? $('myid') ?]).
- `color`
string
Color

Overrides the divider's color by replacing all fill/stroke attributes with the specified value.
Accepts any valid CSS color format (hex, rgb, named colors, CSS variables).

Behavior:
  • When set (e.g. '#FF5733'): All SVG colors are stripped and replaced with this color.
  • When omitted: Original SVG colors are preserved as-is.

The color is applied via CSS currentColor inheritance, allowing the divider to inherit from parent text color when set to a CSS variable or keyword.

Note: This attribute must be completely omitted (not just empty) to preserve original colors.
- `flipped`
bool
Flipped

Mirrors the divider pattern horizontally using CSS transform scale(-1, 1).
Useful for creating visual variety or matching directional flow in the design.

Possible values:
  • false Normal orientation (default)
  • true Horizontally flipped

Omitting this attribute is the same as setting it to false.

Works independently of the position attribute.
- `height`
string
Height

Sets the vertical height of the divider element. Accepts any valid CSS length unit.

Common values:
  • 120px: Fixed pixel height (default)
  • 5vmin: Responsive viewport-based height
  • 10rem: Relative to root font size
- `position`
string
Position

Controls where the divider is positioned within its parent container.
The divider will automatically attach to the nearest ancestor element with the data-layout-divider-container attribute.

Possible values:
  • top Positions at the top edge (rotated 180°).
  • bottom Positions at the bottom edge (default).
- `repeat`
int
Repeat

Controls how many times the divider pattern tiles horizontally across the container width.
The pattern is squished or stretched to fit exactly N repetitions with no gaps.

Behaviour Examples:
  • 1: Pattern spans full width (default)
  • 2: Pattern repeats twice, each taking 50% width
  • 0.5: Pattern is stretched to 200% width (half repeat)
- `source`
string
Source

Specifies which SVG divider pattern to render.

This can be either:
  • A built-in divider name (e.g. Curve)
  • A path to a custom uploaded SVG file (e.g. /media/uploads/divider.svg)

For Custom SVGs:
  • Custom SVGs should be simple path-based designs with a viewBox for proper scaling.
  • The design should be for a 'bottom' divider, as it will be rotated 180° for 'top' dividers.
  • For repeat values of n > 1 the SVG should be designed to tile horizontally without gaps.

Built-in Divider Sources:
Angle AngleLayered Book Cloud CloudLayered Corner CornerAngle CornerAngleLayered CornerCurve CornerCurveLayered Curve Diamond Elegant Gooey HalfCircle HalfCircleLayered InvertAngle InvertAngleLayered OffsetAngle OffsetAngleLayered OffsetCurve OffsetCurveLayered Scollop Slope SlopeWave Stripe StripeWave Wave1 Wave2 Wave3 Wave4 Wave5

Examples

Basic Divider Usage

A section with a simple bottom divider using the built-in Curve pattern.

HTML:

<templates:section> <layout:divider source="Curve" position="bottom" height="5vmin" color="#007bff" repeat="1" /> </templates:section>

Run Example

Custom Divider

A divider with a custom SVG source and multiple repeats.

HTML:

<templates:section> <!-- Note that leaving off the color attribute will use svgs original colours --> <layout:divider source="/media/mypage/divider.svg" position="top" height="80px" repeat="2" /> </templates:section>

Run Example

Stacked Dividers

A section demonstrating multiple layout dividers layered at the top and bottom.

HTML:

<templates:section> <!-- Dividers in the same position form a stack with later dividers on top --> <layout:divider position="top" source="Scollop" repeat="5" height="7vmin" color="#ffa3a5" style="opacity: 0.67;" /> <layout:divider position="top" source="Scollop" repeat="5" height="5vmin" color="#ffa3a5" style="opacity: 1;" flipped="true" /> <layout:divider position="bottom" source="Scollop" repeat="5" height="7vmin" color="#ffa3a5" style="opacity: 0.67;" /> <layout:divider position="bottom" source="Scollop" repeat="5" height="5vmin" color="#ffa3a5" style="opacity: 1;" flipped="true" /> </templates:section>

Run Example