{
  "$schema": "https://pdfx.akashpise.dev/schema/registry-item.json",
  "name": "keep-together",
  "type": "registry:ui",
  "title": "KeepTogether",
  "description": "Prevents page breaks within wrapped content",
  "files": [
    {
      "path": "components/pdfx/keep-together/pdfx-keep-together.tsx",
      "content": "import { View } from '@react-pdf/renderer';\nimport type { Style } from '@react-pdf/types';\nimport type { ReactNode } from 'react';\n\n/**\n * Layout wrapper that prevents its children from splitting across PDF pages.\n * Props - `children` | `minPresenceAhead` | `style`\n * @see {@link KeepTogetherProps}\n */\nexport interface KeepTogetherProps {\n  children?: ReactNode;\n  minPresenceAhead?: number;\n  style?: Style;\n}\n\nexport function KeepTogether({ children, minPresenceAhead, style }: KeepTogetherProps) {\n  return (\n    <View wrap={false} minPresenceAhead={minPresenceAhead} style={style}>\n      {children}\n    </View>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "dependencies": [
    "@react-pdf/renderer"
  ]
}