Skip to content
Gaudi

Search documentation

Search every page, heading and paragraph.

On this page

Page Chrome

Per-page switches for LayoutContainer's site chrome: render it in a page to hide the layout background or the page scroll edges while that page is shown.

Layout@gaudi/design-system/layout/PageChrome

Installation

pnpm add github:g-udi/design-system

Import from @gaudi/design-system. Load @gaudi/design-system/global.css once and add transpilePackages: ['@gaudi/design-system'] in Next.js.

import PageChrome from '@gaudi/design-system/layout/PageChrome';

Usage

import PageChrome from '@gaudi/design-system/layout/PageChrome';
// app/about/page.js: the page draws its own header background.export default function AboutPage() { return ( <> <PageChrome background={ false } /> <AboutHeader /> </> );}

Examples

Playground

Storybook

API

2 props

Accessibility

Renders only a hidden, aria-hidden marker and affects decorative layers only: the background and scroll edges are aria-hidden, so no content, landmark or focus order changes.