Skip to content

armgit / pdfcn

Public Imported from GitHub
0

Beautiful pdf components, built on Takumi and Forme. 100% Free, Zero config, one command setup.

988 B
Raw Blame
{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "forme/keep-together",
  "title": "Keep Together",
  "description": "Keep Together PDF component (forme)",
  "dependencies": [
    "@formepdf/react",
    "@formepdf/core"
  ],
  "registryDependencies": [
    "@pdfcn/forme/utils"
  ],
  "files": [
    {
      "path": "registry/bases/forme/components/keep-together/keep-together.tsx",
      "content": "import type { ReactNode } from \"react\";\n\nimport { View } from \"@/lib/pdf-primitives\";\nimport type { Style } from \"@/types/pdf-components\";\n\nexport interface KeepTogetherProps {\n  children?: ReactNode;\n  minPresenceAhead?: number;\n  style?: Style;\n}\n\nexport const KeepTogether = ({ children, style }: KeepTogetherProps) => (\n  <View wrap={false} style={style as never}>\n    {children}\n  </View>\n);\n",
      "type": "registry:component",
      "target": "components/pdf/keep-together/keep-together.tsx"
    }
  ],
  "type": "registry:ui"
}