{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "dashboard-layout",
  "title": "Dashboard Layout",
  "description": "Page layout for dashboards: a full-bleed container, a page header, section and table headers, a two-column chart grid, and a main pane with a sidebar, with shared 1px borders between bordered blocks.",
  "dependencies": [
    "@radix-ui/react-slot@^1.2.3"
  ],
  "files": [
    {
      "path": "components/dentil/dashboard-layout/dashboard-layout.tsx",
      "content": "import { Slot } from '@radix-ui/react-slot';\nimport * as React from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/*\n * Page layout for a dashboard: a full-bleed column of headers, chart grids, tables and split panes.\n *\n * Blocks carry no outer border, padding or radius of their own. Children of the container, the split and the split\n * panes are pulled up and left by 1px, so a bordered child (a table, a split, a sidebar) shares its edge with the one\n * before it instead of drawing a double line. The container's -1px margin does the same against the frame around it.\n */\n\nexport interface DashboardContainerProps extends React.ComponentProps<'div'> {\n  /** Fill the parent's height instead of growing with the content, e.g. so a `DashboardSplit` scrolls each pane. */\n  fixedHeight?: boolean;\n}\n\n/** Root of a dashboard page. Place it directly inside your app shell's content area. */\nexport function DashboardContainer({ className, fixedHeight, ...props }: DashboardContainerProps) {\n  return (\n    <div\n      data-slot=\"dashboard-container\"\n      className={cn(\n        '-m-px flex min-w-0 flex-1 flex-col *:-ms-px *:-mt-px',\n        fixedHeight && 'h-full max-h-full',\n        className\n      )}\n      {...props}\n    />\n  );\n}\n\n/** Page title row: a heading on the left and actions on the right, stacked on small screens. */\nexport function DashboardHeader({ className, ...props }: React.ComponentProps<'div'>) {\n  return (\n    <div\n      data-slot=\"dashboard-header\"\n      className={cn(\n        'flex min-w-0 flex-col items-start justify-between gap-2 px-5 py-4 sm:flex-row sm:flex-wrap sm:items-center',\n        className\n      )}\n      {...props}\n    />\n  );\n}\n\nexport interface DashboardHeadingProps extends React.ComponentProps<'h3'> {\n  /** Render the styles on the child element, e.g. an `h1`, instead of an `h3`. */\n  asChild?: boolean;\n}\n\n/** Page title. An `h3` by default; pass `asChild` to pick another level. */\nexport function DashboardHeading({ className, asChild, ...props }: DashboardHeadingProps) {\n  const Comp = asChild ? Slot : 'h3';\n  return <Comp data-slot=\"dashboard-heading\" className={cn('text-lg leading-9 font-bold', className)} {...props} />;\n}\n\nexport interface DashboardSubheadingProps extends React.ComponentProps<'h4'> {\n  /** Render the styles on the child element, e.g. an `h2`, instead of an `h4`. */\n  asChild?: boolean;\n}\n\n/** Section title, for a `DashboardSectionHeader` or `DashboardTableHeader`. An `h4` by default. */\nexport function DashboardSubheading({ className, asChild, ...props }: DashboardSubheadingProps) {\n  const Comp = asChild ? Slot : 'h4';\n  return <Comp data-slot=\"dashboard-subheading\" className={cn('leading-6 font-bold', className)} {...props} />;\n}\n\n/** One column, then two from `xl`. Rows size to their content. */\nexport function DashboardGrid({ className, ...props }: React.ComponentProps<'div'>) {\n  return <div data-slot=\"dashboard-grid\" className={cn('grid auto-rows-min xl:grid-cols-2', className)} {...props} />;\n}\n\n/** Main pane and sidebar, stacked until `xl`, then side by side. Each pane scrolls on its own when the split has a fixed height. */\nexport function DashboardSplit({ className, ...props }: React.ComponentProps<'div'>) {\n  return (\n    <div\n      data-slot=\"dashboard-split\"\n      className={cn('flex h-full min-h-0 min-w-0 flex-col *:-ms-px *:-mt-px xl:flex-row', className)}\n      {...props}\n    />\n  );\n}\n\n/** The wide pane of a `DashboardSplit`. */\nexport function DashboardSplitMain({ className, ...props }: React.ComponentProps<'div'>) {\n  return (\n    <div\n      data-slot=\"dashboard-split-main\"\n      className={cn('relative min-h-0 min-w-0 flex-1 overflow-auto', className)}\n      {...props}\n    />\n  );\n}\n\n/** The sidebar of a `DashboardSplit`: full width when stacked, 384px with a left border from `xl`. */\nexport function DashboardSplitSidebar({ className, ...props }: React.ComponentProps<'div'>) {\n  return (\n    <div\n      data-slot=\"dashboard-split-sidebar\"\n      className={cn('relative min-h-0 w-full min-w-0 overflow-auto border-l xl:w-96 xl:shrink-0', className)}\n      {...props}\n    />\n  );\n}\n\n/** Groups a `DashboardSectionHeader` with its content. It adds no styles. */\nexport function DashboardSection(props: React.ComponentProps<'section'>) {\n  return <section data-slot=\"dashboard-section\" {...props} />;\n}\n\n/** Section title row with a bottom border, spaced 16px below whatever comes before it. */\nexport function DashboardSectionHeader({ className, ...props }: React.ComponentProps<'div'>) {\n  return (\n    <div\n      data-slot=\"dashboard-section-header\"\n      className={cn('mt-4 flex min-h-[62px] items-center justify-between border-b px-5 py-4', className)}\n      {...props}\n    />\n  );\n}\n\n/** Padded body of a section, for a chart, a description list or text. */\nexport function DashboardSectionContent({ className, ...props }: React.ComponentProps<'div'>) {\n  return <div data-slot=\"dashboard-section-content\" className={cn('px-5 py-4', className)} {...props} />;\n}\n\n/** Small label above a block inside `DashboardSectionContent`. */\nexport function DashboardSectionTitle({ className, ...props }: React.ComponentProps<'p'>) {\n  return <p data-slot=\"dashboard-section-title\" className={cn('mb-2 text-sm', className)} {...props} />;\n}\n\n/**\n * Title row above a table. It has no bottom border, so the table's own top border closes it. The 16px top margin\n * overrides the container's -1px pull, so it always clears the block above.\n */\nexport function DashboardTableHeader({ className, ...props }: React.ComponentProps<'div'>) {\n  return (\n    <div\n      data-slot=\"dashboard-table-header\"\n      className={cn('mt-4! flex min-h-[61px] items-center justify-between px-5 py-4', className)}\n      {...props}\n    />\n  );\n}\n",
      "type": "registry:component",
      "target": "components/dentil/dashboard-layout/dashboard-layout.tsx"
    }
  ],
  "type": "registry:component"
}