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
Widths
Orders
Heading
Menu
Fill
Orders
Background
Orders
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
| Prop | Type | Default | Description |
|---|---|---|---|
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 |
class | string | — | Class of the root element |
All other attributes fall through to the root.
PageHeader
| Prop | Type | Default | Description |
|---|---|---|---|
background | "soft" | "hard" | "glass" | "solid" | "glass" | How the bar meets the content scrolled under it on a phone, see Background |
divider | boolean | true | Shows a divider once the content has scrolled under the header: on a desktop layout, and on a phone with a hard or glass background |
class | string | — | Class of the band |
The default slot stands in the shared column. All other attributes fall through to the band.
PageContent
| Prop | Type | Default | Description |
|---|---|---|---|
fill | boolean | false | The content fills the page and scrolls inside itself, from 768px up |
class | string | — | 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.
PageFooter
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
| Part | Element | Purpose |
|---|---|---|
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 toenv(safe-area-inset-top, 0px)); override it for an embedded screen with its own status bar--page-background: canvas color; mobile followssurface, desktop defaults tovar(--color-surface)--page-bar-gap: gap between title and actions (default24px)--page-bar-height: bar height (default36px)--page-bar-height-phone: bar height on a phone (default44px)--page-bar-hard-line: line of a hard bar (defaultlight-dark(rgb(0 0 0 / 12%), var(--color-border)), the iOS 26 kit's Hard edge)--page-bar-line: hairline of a glass bar (defaultlight-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 (default48px)--page-content-padding-top: top of the content on a phone (default16px)--page-gutter: side gutter on a phone (default16px)--page-gutter-wide: side gutter and top of the content from 768px up (default24px)--page-header-padding-bottom: gap between the bar and the line (default12px)--page-header-padding-top: top of the header (default12px)--page-title-font-size: title font size (default20px)--page-title-line-height: title line height (default26px)--page-width: width of the column, any value--page-width-column:columnwidth (default768px)--page-width-wide:widewidth (default1280px)
Footer spacing
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));
}