Page.Section

Components/Layout/Page

Interactive docs page: https://wix-pages.com/design-system-documentation/#/component/page-section

Overview

Copy

Page section is a standalone element that divides content of a page into multiple sections.

Do

  • Use it to divide content into sections on a page.
  • Use it to group grid layouts visually.

Don't

  • Don't use it to divide content into sections inside of a card.

Feature examples

Structure

Component consists of a title area and actions bar (optional). Actions bar can contain any number of actions.

Copy

Subtitle

Use subtitle to provide more context about section content.

Copy

Divider

Use divider to visually merge elements into one entity when section content is built using grid layout.

Copy

Text overflow

Both title and subtitle are limited to a single line of text. Longer values will be truncated and displayed in a tooltip on a hover.

Copy

Common use case examples

Content grouping

Use <PageSection/> to group elements into sections inside of a page

Copy

Code

Copy

Props

NameTypeDefaultDescription
actionsBarReactNode—A placeholder for a component that can contain actions.
dataHookstring—Applied as data-hook HTML attribute that can be used in the tests.
showDividerboolean—Renders a divider.
subtitleReactNode—The subtitle content.
titleReactNode—The main title content.

Testkit

Import the driver matching your test environment:

Copy

Driver methods

MethodDescription
getTitleTextGets PageSection title text
isTitleExistsChecks whether the PageSection title exists
getSubtitleTextGets PageSection subtitle text
isSubtitleExistsChecks whether the PageSection subtitle exists
isActionsBarExistsChecks whether the PageHeader action bar exists
existsChecks whether the component found with the given data hook.
elementGets the component root element.
clickClicks on the component root element.
baseReturns UniDriver for the base element.

Changelog

No released changes have been recorded for this component.

Last updated: 19 October 2026

Did this help?