{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "col",
  "title": "Col",
  "description": "Flex child with explicit grow, shrink, and self-alignment.",
  "dependencies": [
    "@base-ui/react"
  ],
  "files": [
    {
      "path": "components/ui/col.tsx",
      "content": "import { mergeProps } from \"@base-ui/react/merge-props\";\nimport { useRender } from \"@base-ui/react/use-render\";\nimport { cn } from \"@/lib/utils\";\n\nconst selfVariants = {\n  auto: \"self-auto\",\n  start: \"self-start\",\n  center: \"self-center\",\n  end: \"self-end\",\n  stretch: \"self-stretch\",\n  baseline: \"self-baseline\",\n} as const;\n\ntype ColSelf = keyof typeof selfVariants;\n\ntype ColProps = useRender.ComponentProps<\"div\"> & {\n  /** Fill the remaining space in the parent Row or Stack. */\n  grow?: boolean;\n  /** Allow shrinking below the content size. Pass `false` for fixed rails. */\n  shrink?: boolean;\n  /** Override the parent's cross-axis alignment for this child only. */\n  self?: ColSelf;\n};\n\n/**\n * Flex child: a region inside a Row or Stack with explicit grow and shrink\n * behavior. Col is not a container; nest a Stack or Row inside it to lay out\n * its own children.\n */\nfunction Col({\n  grow = false,\n  shrink = true,\n  self = \"auto\",\n  className,\n  render,\n  ...props\n}: ColProps) {\n  return useRender({\n    defaultTagName: \"div\",\n    render,\n    state: { slot: \"col\" },\n    props: mergeProps<\"div\">(\n      {\n        className: cn(\n          \"min-w-0\",\n          grow ? \"grow\" : \"grow-0\",\n          shrink ? \"shrink\" : \"shrink-0\",\n          selfVariants[self],\n          className,\n        ),\n      },\n      props,\n    ),\n  });\n}\n\nexport { Col };\nexport type { ColProps, ColSelf };\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}