{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "ink/stack",
  "title": "Stack",
  "description": "Vertical/horizontal stack with gap",
  "dependencies": [
    "ink"
  ],
  "files": [
    {
      "path": "registry/ui/stack.tsx",
      "content": "import { Box } from \"ink\";\nimport type { BoxProps } from \"ink\";\nimport type { ReactNode } from \"react\";\n\nexport interface StackProps extends Omit<\n  BoxProps,\n  \"children\" | \"flexDirection\"\n> {\n  direction?: \"vertical\" | \"horizontal\";\n  gap?: number;\n  children: ReactNode;\n}\n\nexport const Stack = ({\n  direction = \"vertical\",\n  gap = 0,\n  children,\n  width,\n  height,\n  alignItems,\n  justifyContent,\n  ...props\n}: StackProps) => (\n  <Box\n    {...props}\n    flexDirection={direction === \"vertical\" ? \"column\" : \"row\"}\n    gap={gap}\n    width={width}\n    height={height}\n    alignItems={alignItems}\n    justifyContent={justifyContent}\n  >\n    {children}\n  </Box>\n);\n",
      "type": "registry:ui"
    }
  ],
  "categories": [
    "layout"
  ],
  "type": "registry:ui"
}