{{-- M3's window size classes, live: the one this window is in, what each one changes, and the variants that key on them. The five cards light up through the variants themselves, so the page proves the compiled breakpoints rather than describing them. --}}

Layout

Widths are M3's window size classes and nothing else: compact below 600px, then medium: 600, expanded: 840, large: 1200 and extra-large: 1600, with max-medium: and friends for "below". Tailwind's sm:2xl: compile to nothing. Scripts read the same numbers from resources/js/breakpoints.js.

This window

Compact

below 600px

Medium

600–839px

Expanded

840–1199px

Large

1200–1599px

Extra-large

from 1600px

Class Navigation Panes Dialogs and sheets Margin
Compact Navigation bar; the rail opens as a modal One Full-screen dialogs, bottom sheets for choices, date pickers as dialogs 16px
Medium Collapsed navigation rail One Basic dialogs, docked search and pickers 24px
Expanded Navigation rail, collapsible; starts collapsed Two: list-detail (<x-drawer pane>) or a 360px supporting pane Basic dialogs, side sheets 24px
Large Navigation rail, expanded by default Two; a fixed pane is 412px Basic dialogs, side sheets 24px
Extra-large Navigation rail, expanded Two, a third as a side sheet Basic dialogs, side sheets 24px

<x-app-shell> does all of this: resize this showcase and watch the bar, the rail and the content margin (--material-margin) change at 600, 840 and 1200px. A visitor who has chosen a rail width keeps it; until then the rail follows the class.

The layout components

M3 describes a layout as a scaffold of bars and rails around panes, and names three canonical layouts. These are those words as components, each taking as, hide-below and hide-from, and only the spacing tokens for a gap or padding:

  • <x-surface> — a tonal region: a surface role, padding, a corner and an outline.
  • <x-stack>, <x-row> and <x-grid> — arrangement inside a pane.