{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "layout-edge-sidebar-visibility",
  "type": "registry:item",
  "title": "Edge Sidebar Visibility",
  "description": "Hide the sidebar by default and show it at a specific breakpoint.",
  "dependencies": [
    "@mui/material",
    "@emotion/react",
    "@emotion/styled"
  ],
  "registryDependencies": [
    "https://www.mui-treasury.com/r/layout-core.json"
  ],
  "files": [
    {
      "path": "layout/layout-docs-edge-sidebar/demos/layout-edge-sidebar-visibility.demo.tsx",
      "target": "src/mui-treasury/layout/layout-docs-edge-sidebar/demos/layout-edge-sidebar-visibility.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 EdgeSidebar from '@/registry/layout/layout-core/EdgeSidebar';\nimport EdgeSidebarContent from '@/registry/layout/layout-core/EdgeSidebarContent';\nimport Footer from '@/registry/layout/layout-core/Footer';\nimport Header from '@/registry/layout/layout-core/Header';\nimport Root from '@/registry/layout/layout-core/Root';\n\nexport const meta = {\n  title: 'Edge Sidebar Visibility',\n  description:\n    'Hide the sidebar by default and show it at a specific breakpoint.',\n  previewMode: 'iframe' as const,\n};\n\nexport function Demo() {\n  return (\n    <Root height=\"90vh\">\n      <Header>\n        <Box sx={{ px: 2 }}>\n          <Typography\n            variant=\"caption\"\n            sx={{\n              fontWeight: 'bold',\n            }}\n          >\n            Header — resize to see sidebar appear at md\n          </Typography>\n        </Box>\n      </Header>\n      <EdgeSidebar\n        id=\"sidebar-visibility\"\n        variant={{\n          xs: ['permanent', { width: '256px', visibility: 'hidden' }],\n          md: ['permanent', { width: '256px', visibility: 'visible' }],\n        }}\n      >\n        <EdgeSidebarContent>\n          <Box sx={{ p: 2 }}>\n            <Typography\n              variant=\"caption\"\n              sx={{\n                color: 'text.secondary',\n              }}\n            >\n              Sidebar\n            </Typography>\n          </Box>\n        </EdgeSidebarContent>\n      </EdgeSidebar>\n      <Content>\n        <Box sx={{ p: 2 }}>\n          <Typography\n            variant=\"body2\"\n            sx={{\n              color: 'text.secondary',\n            }}\n          >\n            Content\n          </Typography>\n        </Box>\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"
  }
}