Page

The frame of an app page: header and content share one column, a line comes as the content scrolls, and on a phone the header becomes a floating glass bar.

import {
Page,
PageActions,
PageBar,
PageContent,
PageFooter,
PageHeader,
PageHeading,
PageLeading,
PageSubtitle,
PageTitle,
} from "@plexui/vue/components/Page";

Examples

Overview

Orders

Order 1024Paid
Order 1025Paid
Order 1026Paid
Order 1027Paid
Order 1028Paid
Order 1029Paid
Order 1030Paid
Order 1031Paid
Order 1032Paid
Order 1033Paid
Order 1034Paid
Order 1035Paid
Order 1036Paid
Order 1037Paid
Order 1038Paid
Order 1039Paid
Order 1040Paid
Order 1041Paid
Order 1042Paid
Order 1043Paid
Order 1044Paid
Order 1045Paid
Order 1046Paid
Order 1047Paid

Widths

width

Orders

Order 1024Paid
Order 1025Paid
Order 1026Paid
Order 1027Paid
Order 1028Paid
Order 1029Paid
Order 1030Paid
Order 1031Paid
Order 1032Paid
Order 1033Paid
Order 1034Paid
Order 1035Paid
Order 1036Paid
Order 1037Paid
Order 1038Paid
Order 1039Paid
Order 1040Paid
Order 1041Paid
Order 1042Paid
Order 1043Paid
Order 1044Paid
Order 1045Paid
Order 1046Paid
Order 1047Paid

Heading

Menu

Draft
Saved a minute ago
Order 1024Paid
Order 1025Paid
Order 1026Paid
Order 1027Paid
Order 1028Paid
Order 1029Paid
Order 1030Paid
Order 1031Paid
Order 1032Paid
Order 1033Paid
Order 1034Paid
Order 1035Paid
Order 1036Paid
Order 1037Paid
Order 1038Paid
Order 1039Paid
Order 1040Paid
Order 1041Paid
Order 1042Paid
Order 1043Paid
Order 1044Paid
Order 1045Paid
Order 1046Paid
Order 1047Paid

Fill

Orders

Order 1024Paid
Order 1025Paid
Order 1026Paid
Order 1027Paid
Order 1028Paid
Order 1029Paid
Order 1030Paid
Order 1031Paid
Order 1032Paid
Order 1033Paid
Order 1034Paid
Order 1035Paid
Order 1036Paid
Order 1037Paid
Order 1038Paid
Order 1039Paid
Order 1040Paid
Order 1041Paid
Order 1042Paid
Order 1043Paid
Order 1044Paid
Order 1045Paid
Order 1046Paid
Order 1047Paid

Background

background (top)

Orders

Order 1024Paid
Order 1025Paid
Order 1026Paid
Order 1027Paid
Order 1028Paid
Order 1029Paid
Order 1030Paid
Order 1031Paid
Order 1032Paid
Order 1033Paid
Order 1034Paid
Order 1035Paid
Order 1036Paid
Order 1037Paid
Order 1038Paid
Order 1039Paid
Order 1040Paid
Order 1041Paid
Order 1042Paid
Order 1043Paid
Order 1044Paid
Order 1045Paid
Order 1046Paid
Order 1047Paid
background (bottom)

Phone

A page needs a bounded parent. These demos use a 420px frame on desktop and the full viewport on phones, without an outer border or rounded container:

.page-frame {
  height: 420px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

@media (max-width: 767px) {
  .page-frame {
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
}

Under 768px the header contains a 44px toolbar row with 10px below it, plus the device top safe area. It floats over the content and meets what scrolls under it by its background, see Background: by default it is a translucent, blurred bar with a hairline once content is under it. With background="soft" the canvas color covers the content under the row and fades out below it, and a bar without a title, of controls alone, covers only the status bar and leaves the content clear under its controls, as native iOS 26 does. The content keeps its place through --page-top, the top inset and the bar together, also for anything else that has to start below the bar, such as a banner.

Keep the row to a title and one group of actions. The bar has no room for a second row, so anything set under PageBar, such as a search field, belongs at the top of PageContent on a phone. useBreakpoint("md") tells which one to render. Use PageLeading for a Back button or the menu button of a sidebar. The title stays centred between the leading and trailing controls.

For a phone bar of its own, with a large title, a search field, a button group or a bottom bar, put a Toolbar in the page. Under 768px it replaces PageHeader and PageFooter, which stay the desktop header and footer.

Use it inside SidebarInset for a whole app, see the app sidebar.

API

Page

PropTypeDefaultDescription
width"full" | "wide" | "column""full"Column that header and content share: edge to edge, 1280px or 768px, centred
surface"plain" | "grouped""plain"Mobile canvas and field-group palette; desktop colors stay unchanged
classstring—Class of the root element

All other attributes fall through to the root.

PropTypeDefaultDescription
background"soft" | "hard" | "glass" | "solid""glass"How the bar meets the content scrolled under it on a phone, see Background
dividerbooleantrueShows a divider once the content has scrolled under the header: on a desktop layout, and on a phone with a hard or glass background
classstring—Class of the band

The default slot stands in the shared column. All other attributes fall through to the band.

PageContent

PropTypeDefaultDescription
fillbooleanfalseThe content fills the page and scrolls inside itself, from 768px up
classstring—Class of the element that scrolls

The default slot stands in the shared column. All other attributes, listeners included, fall through to the element that scrolls. Its template ref is the component: read the element from $el.

Actions stay below the scrolling PageContent. background sets how the footer meets the content under it on a phone, as the header's does (default "soft", so the content stays clear under its actions). The footer shares the page column and includes at least 16px of bottom padding, or the device's bottom safe area when larger. Give Page a bounded height, such as 100dvh, to keep the footer at the bottom of the screen. Native div attributes are forwarded to the footer.

Parts

PartElementPurpose
PageLeading<div>Back or menu controls on the leading side of the bar
PageBar<div>Row of the title and the actions
PageHeading<div>Title with what stands beside it
PageTitle<h1>Page heading
PageSubtitle<div>Status of the page, including badges and text
PageActions<div>Buttons on the trailing side of the bar

Styling

surface="plain" is the default mobile canvas. Use surface="grouped" for screens of related field groups: light mode uses a gray canvas with white groups; dark mode uses the corresponding base surface levels. This palette is separate from the bars' background and leaves desktop colors unchanged.

PageHeader and PageFooter take background: glass (the header's default), soft (the footer's default), hard or solid, see Background. Use hard or solid bars when the content should not show through them on phones.

Page reads these component tokens. Override them at any scope to restyle it:

  • --safe-area-inset-top: shared top inset for Page and Dialog (defaults to env(safe-area-inset-top, 0px)); override it for an embedded screen with its own status bar
  • --page-background: canvas color; mobile follows surface, desktop defaults to var(--color-surface)
  • --page-bar-gap: gap between title and actions (default 24px)
  • --page-bar-height: bar height (default 36px)
  • --page-bar-height-phone: bar height on a phone (default 44px)
  • --page-bar-hard-line: line of a hard bar (default light-dark(rgb(0 0 0 / 12%), var(--color-border)), the iOS 26 kit's Hard edge)
  • --page-bar-line: hairline of a glass bar (default light-dark(rgb(0 0 0 / 10%), var(--color-border)))
  • --page-bar-veil: translucent fill of a glass bar, derived from the current mobile canvas
  • --page-content-padding-bottom: bottom of the content (default 48px)
  • --page-content-padding-top: top of the content on a phone (default 16px)
  • --page-gutter: side gutter on a phone (default 16px)
  • --page-gutter-wide: side gutter and top of the content from 768px up (default 24px)
  • --page-header-padding-bottom: gap between the bar and the line (default 12px)
  • --page-header-padding-top: top of the header (default 12px)
  • --page-title-font-size: title font size (default 20px)
  • --page-title-line-height: title line height (default 26px)
  • --page-width: width of the column, any value
  • --page-width-column: column width (default 768px)
  • --page-width-wide: wide width (default 1280px)

Page.Footer stays below the scrolling content. Set --page-footer-gutter when its primary action needs a larger horizontal inset than the fields. --page-footer-padding-bottom controls the space below it, including the safe area.

.mobile-form {
  --page-footer-gutter: 24px;
  --page-footer-padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
}