{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "z-dialog-close",
  "title": "Z Dialog Close",
  "dependencies": [
    "@base-ui-components/react@1.0.0-beta.3"
  ],
  "devDependencies": [],
  "registryDependencies": [
    "https://ui.orchid.ai/r/orchid-theme.json"
  ],
  "files": [
    {
      "path": "registry/ui/orchid/spectrum/atoms/z-dialog/z-dialog-close.tsx",
      "content": "\"use client\";\nimport { Dialog } from '@base-ui-components/react/dialog';\nimport { type ReactNode, forwardRef } from 'react';\ntype ZDialogCloseProps = {\n    children: ReactNode;\n    className?: string;\n    asChild?: boolean;\n};\nconst ZDialogClose = forwardRef<HTMLButtonElement, ZDialogCloseProps>(({ children, className, asChild = true, ...props }, ref) => {\n    return (<Dialog.Close ref={ref} className={className} render={asChild\n            ? undefined\n            : (props) => (<button {...(props as React.ButtonHTMLAttributes<HTMLButtonElement>)}>\n                  {children}\n                </button>)} {...props}>\n        {asChild ? children : undefined}\n      </Dialog.Close>);\n});\nZDialogClose.displayName = 'ZDialogClose';\nexport default ZDialogClose;\n",
      "type": "registry:ui",
      "target": "@ui/orchid/spectrum/atoms/z-dialog/z-dialog-close.tsx"
    }
  ],
  "type": "registry:ui"
}