{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "layout-inset-sidebar-sticky",
  "type": "registry:item",
  "title": "Inset Sidebar Sticky",
  "description": "Default sticky behavior — sidebar sticks under the header on scroll.",
  "dependencies": [
    "@mui/material",
    "@emotion/react",
    "@emotion/styled"
  ],
  "registryDependencies": [
    "https://www.mui-treasury.com/r/layout-core.json"
  ],
  "files": [
    {
      "path": "layout/layout-docs-inset-sidebar/demos/layout-inset-sidebar-sticky.demo.tsx",
      "target": "src/mui-treasury/layout/layout-docs-inset-sidebar/demos/layout-inset-sidebar-sticky.demo.tsx",
      "content": "import React from 'react';\n\nimport Box from '@mui/material/Box';\nimport Typography from '@mui/material/Typography';\n\nimport Content from '@/registry/layout/layout-core/Content';\nimport Footer from '@/registry/layout/layout-core/Footer';\nimport Header from '@/registry/layout/layout-core/Header';\nimport InsetContent from '@/registry/layout/layout-core/InsetContent';\nimport InsetSidebar from '@/registry/layout/layout-core/InsetSidebar';\nimport Root from '@/registry/layout/layout-core/Root';\n\nexport const meta = {\n  title: 'Inset Sidebar Sticky',\n  description:\n    'Default sticky behavior — sidebar sticks under the header on scroll.',\n  previewMode: 'iframe',\n};\n\nexport function Demo() {\n  return (\n    <Root height=\"300px\" sx={{ maxHeight: '400px' }}>\n      <Header>\n        <Box sx={{ px: 2 }}>\n          <Typography\n            variant=\"caption\"\n            sx={{\n              fontWeight: 'bold',\n            }}\n          >\n            Header\n          </Typography>\n        </Box>\n      </Header>\n      <Content>\n        <Box sx={{ p: 2, flex: 1 }}>\n          {Array.from({ length: 100 }, (_, i) => (\n            <Typography\n              key={i}\n              variant=\"body2\"\n              sx={{\n                color: 'text.secondary',\n              }}\n            >\n              Line {i + 1}\n            </Typography>\n          ))}\n        </Box>\n        <InsetSidebar width=\"200px\">\n          <InsetContent>\n            <Box sx={{ p: 2 }}>\n              <Typography\n                variant=\"caption\"\n                sx={{\n                  color: 'text.secondary',\n                }}\n              >\n                Sticky sidebar — scroll main content to see\n              </Typography>\n            </Box>\n          </InsetContent>\n        </InsetSidebar>\n      </Content>\n      <Footer>\n        <Box sx={{ p: 2 }}>\n          <Typography\n            variant=\"caption\"\n            sx={{\n              color: 'text.secondary',\n            }}\n          >\n            Footer\n          </Typography>\n        </Box>\n      </Footer>\n    </Root>\n  );\n}\n",
      "type": "registry:item"
    }
  ],
  "meta": {
    "category": "layout",
    "previewMode": "iframe"
  }
}