{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "stack",
  "title": "Stack",
  "description": "Vertical flex container with responsive gap, align, and justify.",
  "dependencies": [
    "@base-ui/react"
  ],
  "registryDependencies": [
    "@layout-kit/layout-spacing"
  ],
  "files": [
    {
      "path": "components/ui/stack.tsx",
      "content": "import { mergeProps } from \"@base-ui/react/merge-props\";\nimport { useRender } from \"@base-ui/react/use-render\";\nimport {\n  alignVariants,\n  gapVariants,\n  justifyVariants,\n  responsiveClasses,\n  type Align,\n  type Gap,\n  type Justify,\n  type Responsive,\n} from \"@/lib/spacing\";\nimport { cn } from \"@/lib/utils\";\n\ntype StackProps = useRender.ComponentProps<\"div\"> & {\n  /** Space between children. */\n  gap?: Responsive<Gap>;\n  /** Cross-axis (horizontal) alignment of children. */\n  align?: Responsive<Align>;\n  /** Main-axis (vertical) distribution of children. */\n  justify?: Responsive<Justify>;\n};\n\n/** Vertical flex container: children flow top to bottom with one consistent gap. */\nfunction Stack({\n  gap = 4,\n  align = \"stretch\",\n  justify = \"start\",\n  className,\n  render,\n  ...props\n}: StackProps) {\n  return useRender({\n    defaultTagName: \"div\",\n    render,\n    state: { slot: \"stack\" },\n    props: mergeProps<\"div\">(\n      {\n        className: cn(\n          \"flex min-w-0 flex-col\",\n          responsiveClasses(gap, gapVariants),\n          responsiveClasses(align, alignVariants),\n          responsiveClasses(justify, justifyVariants),\n          className,\n        ),\n      },\n      props,\n    ),\n  });\n}\n\nexport { Stack };\nexport type { StackProps };\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}