Skip to Content
Puzzle

Page Layout

Compose a header, main content, sidebars, and footer.

Import

import { PageLayout } from "@puzzle-ui/ui";

Regions

Place region components directly inside PageLayout. They become semantic header, main, aside, and footer elements. Sidebars appear below main content on mobile/tablet and beside it on desktop by default.

390 × 500

API

PropTypeDefaultDescription
childrenReactNodeRequiredDirect region components.
sidebarPlacementResponsive "beside" | "below"Mobile/tablet below, desktop besideResponsive sidebar positioning.
maxWidthstring | numberTheme CSSContent width limit.
gap, rowGap, columnGapstring | numberTheme CSSRegion spacing.
contentPaddingInline, contentPaddingBlockstring | numberTheme CSSContent padding.
minHeightstring | numberTheme CSSPage minimum height.
className, contentClassNamestring-Root and content-grid classes.
styleCSSProperties-Root style.

Numbers represent pixels; prefer theme variables for consistent sizing. Responsive values accept { mobile, tablet, desktop }.

PageLayout.Header, .Main, .LeftSidebar, .RightSidebar, and .Footer accept children and native HTMLElement attributes. Use each region once; duplicate regions replace earlier instances. Avoid nesting multiple main landmarks in a real page.

On this page

;