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.

696 B
Raw Blame
import { Document, Page } from "@formepdf/react";

import { Section } from "@/registry/bases/forme/components/section/section";
import { Text } from "@/registry/bases/forme/components/text/text";

const DemoBody = () => (
  <Section spacing="none">
    <Text>
      Default body text for paragraphs, descriptions, and document content.
    </Text>
    <Text variant="xs" color="mutedForeground">
      Caption text for metadata and supporting details.
    </Text>
    <Text variant="lg">Lead paragraph with a larger typographic scale.</Text>
  </Section>
);

const Demo = () => (
  <Document>
    <Page size="A4" margin={30}>
      <DemoBody />
    </Page>
  </Document>
);

export default Demo;