Skip to contentWolf-Rayet

Page

A page layout arranges the sections of a page on a grid of columns.

Install

One package and one stylesheet. The stylesheet holds the tokens every component uses.

pnpm add @wolf-rayet/react
import '@wolf-rayet/react/css/wolf-rayet.css';
import { PageLayout } from '@wolf-rayet/react';

Props

A required prop is marked with an asterisk.

PropTypeDefaultDescription
children *ReactNodeNoneThe main content of the page.
panelReactNodeNoneRelated content shown beside the main area. Leave it out for a page that needs the full width.

Accessibility

What the component does for you, and what it needs from you.

  • The main content is a main landmark, so people can jump to it and a skip link has a target.
  • The panel comes after the main content in reading order. This is usually right, because the main content is what people came for.
  • The layout does not create headings. The page still needs a heading structure of its own.