{
  "$schema": "https://rift-ds.com/schema/component.schema.json",
  "version": "1.40.0",
  "kind": "component",
  "name": "SiteLayout",
  "label": "Site layout",
  "slug": "site-layout",
  "category": "layout",
  "description": "The frame of a docs or marketing site: header, sidebar, content, aside and footer, with the page's width and the sidebar's dock set apart.",
  "client": false,
  "importPath": "rift-ds/components/SiteLayout/SiteLayout",
  "barrel": "main",
  "docsUrl": "https://rift-ds.com/components/site-layout",
  "markdownUrl": "https://rift-ds.com/components/site-layout.md",
  "exports": [
    {
      "component": "SiteLayout",
      "props": [
        {
          "name": "children",
          "type": "ReactNode",
          "typeKind": "reference",
          "required": true,
          "description": "The page's main content: the article, the page."
        },
        {
          "name": "header",
          "type": "ReactNode",
          "typeKind": "reference",
          "required": false,
          "description": "The top bar, usually a SiteHeader. A SiteHeader given no `width` of its\nown follows `headerWidth`, so the bar lines up with the page below it."
        },
        {
          "name": "sidebar",
          "type": "ReactNode",
          "typeKind": "reference",
          "required": false,
          "description": "The navigation column, usually a scrollable SideNav: the wide-screen\nform of the site's sub-navigation. Sticks below the header; below\n960px it leaves the page, and the header's own menu carries the same\npages (give each SiteHeader section its `drawerItems`, and set the\nheader's `foldBelow=\"tablet\"` so it folds at the same step), so a\nreader has one menu, never two."
        },
        {
          "name": "aside",
          "type": "ReactNode",
          "typeKind": "reference",
          "required": false,
          "description": "The column after the content, usually an AnchorNav reading the page's headings. Gives way below 1152px in the `column` placement."
        },
        {
          "name": "asidePlacement",
          "type": "\"column\" | \"edge\"",
          "typeKind": "enum",
          "values": [
            "column",
            "edge"
          ],
          "required": false,
          "description": "Where the aside sits. `column` gives it a column of its own after the\ncontent. `edge` pins it to the window's end edge, centred on the\nheight, and gives the content the room: the place for AnchorNav's\n`floating` variant, a minimap that opens on hover or focus. Hidden\nbelow 960px in either.",
          "default": "column"
        },
        {
          "name": "footer",
          "type": "ReactNode",
          "typeKind": "reference",
          "required": false,
          "description": "The bottom of the site, usually a SiteFooter."
        },
        {
          "name": "width",
          "type": "\"contained\" | \"full\"",
          "typeKind": "enum",
          "values": [
            "contained",
            "full"
          ],
          "required": false,
          "description": "How wide the page runs, the shell recipe's width axis. `contained`\ncentres the columns at the contained width (1440px, or the nearest\n`--ds-shell-contained-width`); `full` runs them edge to edge, the side\ngutter aside.",
          "default": "contained"
        },
        {
          "name": "containedWidth",
          "type": "\"default\" | \"narrow\" | \"wide\"",
          "typeKind": "enum",
          "values": [
            "default",
            "narrow",
            "wide"
          ],
          "required": false,
          "description": "The contained width's step, for a page a level narrower or wider than\nthe default: `narrow` (1200px, a 1080px article beside an edge-docked sidebar), `default` (1440px) or `wide` (1680px).\nThe header and the footer follow it when contained. With the sidebar\ndocked to the edge, the step caps the room after the sidebar; docked to\nthe content, it caps the sidebar and the content together.",
          "default": "default"
        },
        {
          "name": "headerWidth",
          "type": "\"contained\" | \"full\"",
          "typeKind": "enum",
          "values": [
            "contained",
            "full"
          ],
          "required": false,
          "description": "How wide the header's bar runs, for a SiteHeader that sets no `width`\nof its own. It moves with the sidebar's dock: `full` when the sidebar\ndocks to the window's edge (so the brand sits over the sidebar, flush\nwith the same edge), the page's `width` when it docks beside the\ncontent. Set it only to break that pairing.",
          "defaultExpression": "sidebarDock === 'edge' ? 'full' : width"
        },
        {
          "name": "footerWidth",
          "type": "\"contained\" | \"full\"",
          "typeKind": "enum",
          "values": [
            "contained",
            "full"
          ],
          "required": false,
          "description": "How wide the footer's row runs. It moves with the header: `full` when\nthe sidebar docks to the window's edge, the page's `width` when it\ndocks beside the content, so the top and the bottom of the site always\nagree. Set it only to break that pairing.",
          "defaultExpression": "sidebarDock === 'edge' ? 'full' : width"
        },
        {
          "name": "sidebarDock",
          "type": "\"content\" | \"edge\"",
          "typeKind": "enum",
          "values": [
            "content",
            "edge"
          ],
          "required": false,
          "description": "Where the sidebar sits. `content` keeps it in the page's row, beside the\ncontent, so a contained page centres all three columns together. `edge`\ndocks it to the window's start edge behind a hairline, and the content\nand aside are laid out (and contained) in the room after it.",
          "default": "content"
        },
        {
          "name": "readingWidth",
          "type": "boolean",
          "typeKind": "primitive",
          "required": false,
          "description": "Hold the main column to a reading width (about 75 characters of body\ntext, centred in its column) while the page is contained. A full-width page lets the content run the whole column.\n`--ds-site-layout-reading-width` sets the measure.",
          "default": false
        },
        {
          "name": "mainId",
          "type": "string",
          "typeKind": "primitive",
          "required": false,
          "description": "The id of the main region, the skip link's target.",
          "default": "main"
        },
        {
          "name": "skipLinkLabel",
          "type": "string",
          "typeKind": "primitive",
          "required": false,
          "description": "The skip link's text, the page's first stop. Pass an empty string for none.",
          "default": "Skip to content"
        },
        {
          "name": "sidebarLabel",
          "type": "string",
          "typeKind": "primitive",
          "required": false,
          "description": "Accessible name of the sidebar's navigation landmark.",
          "default": "Pages"
        },
        {
          "name": "asideLabel",
          "type": "string",
          "typeKind": "primitive",
          "required": false,
          "description": "Accessible name of the aside's complementary landmark.",
          "default": "On this page"
        },
        {
          "name": "className",
          "type": "string",
          "typeKind": "primitive",
          "required": false,
          "description": "Additional CSS classes",
          "default": ""
        }
      ]
    }
  ],
  "externalTypes": {
    "ReactNode": "react"
  },
  "keys": {
    "by": "platform",
    "note": "A frame: its slots own their keys, and its skip link is a native link."
  },
  "size": {
    "gzip": 1350
  },
  "alternatives": [
    {
      "name": "AppLayout",
      "when": "the page is an app screen with a rail of tools rather than a site of pages",
      "schemaUrl": "https://rift-ds.com/schema/components/app-layout.json"
    }
  ]
}
