Skip to content
GaudiGaudi Design System home

Search documentation

Search every page, heading and paragraph.

LayoutContainer

Async server layout that composes theme context, navigation, a skip link, article content, footer, and host-provided structured data.

Layout@gaudi/design-system/layout/LayoutContainerSource

Installation

pnpm add github:ahmadassaf/design-system

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

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

Usage

import LayoutContainer from '@gaudi/design-system/layout/LayoutContainer';
export default function RootLayout({ children }) { return <LayoutContainer metadata={metadata} navigation={navigation} jsonLd={loadJsonLd}> {children} </LayoutContainer>;}

API

5 props

Accessibility

Keep the skip target and the single main landmark. Supply accessible navigation and footer content; analytics and JSON-LD must come from the host.

Notes

  • Import the async component directly from @gaudi/design-system/layout/LayoutContainer in a server component. Resolve request cookies in the host and pass metadata.theme; Gaudi does not read request cookies.