Beautiful pdf components, built on Takumi and Forme. 100% Free, Zero config, one command setup.
{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "forme/meeting-minutes",
"title": "Meeting Minutes",
"description": "Meeting Minutes PDF block (forme)",
"dependencies": [
"@formepdf/react",
"@formepdf/core"
],
"registryDependencies": [
"@pdfcn/forme/utils",
"@pdfcn/forme/badge",
"@pdfcn/forme/list",
"@pdfcn/forme/page-footer",
"@pdfcn/forme/page-header",
"@pdfcn/forme/section",
"@pdfcn/forme/table",
"@pdfcn/forme/text"
],
"files": [
{
"path": "registry/bases/forme/blocks/meeting-minutes/meeting-minutes.tsx",
"content": "import { Document, Page, StyleSheet, View } from \"@formepdf/react\";\n\nimport { Badge } from \"@/components/pdf/badge/badge\";\nimport { PdfList } from \"@/components/pdf/list/list\";\nimport { PageFooter } from \"@/components/pdf/page-footer/page-footer\";\nimport { PageHeader } from \"@/components/pdf/page-header/page-header\";\nimport { Section } from \"@/components/pdf/section/section\";\nimport {\n Table,\n TableBody,\n TableCell,\n TableHeader,\n TableRow,\n} from \"@/components/pdf/table/table\";\nimport { Text } from \"@/components/pdf/text/text\";\nimport {\n PdfcnThemeProvider,\n usePdfcnTheme,\n} from \"@/components/pdf/theme-provider\";\nimport type { PdfcnTheme } from \"@/types/pdf-themes\";\n\nimport type {\n MeetingMinutesActionStatus,\n MeetingMinutesProps,\n} from \"./meeting-minutes.types\";\n\n// Sample data — replace with your own props or data source\nconst sampleData: MeetingMinutesProps = {\n absent: [{ name: \"Casey Wu\", role: \"QA Lead\" }],\n accentColor: \"#0891b2\",\n actionItems: [\n {\n dueDate: \"Sep 19, 2026\",\n owner: \"Jordan Lee\",\n status: \"In Progress\",\n task: \"Create pdfme integration RFC\",\n },\n {\n dueDate: \"Sep 22, 2026\",\n owner: \"Sam Patel\",\n status: \"Not Started\",\n task: \"Design community page wireframes\",\n },\n {\n dueDate: \"Sep 26, 2026\",\n owner: \"Alex Kim\",\n status: \"Complete\",\n task: \"Share Q2 outcomes deck with stakeholders\",\n },\n ],\n agenda: [\n \"Review Q2 outcomes\",\n \"Q3 feature priorities\",\n \"Resource allocation\",\n \"Timeline and milestones\",\n ],\n attendees: [\n { name: \"Alex Kim\", role: \"Product Lead\" },\n { name: \"Jordan Lee\", role: \"Engineering Lead\" },\n { name: \"Sam Patel\", role: \"Design Lead\" },\n ],\n date: \"September 12, 2026\",\n decisions: [\n {\n decision: \"Proceed with pdfme as second rendering base\",\n number: 1,\n rationale: \"Better JSX support\",\n },\n {\n decision: \"Allocate 2 engineers to PDF module full-time\",\n number: 2,\n },\n ],\n discussions: [\n {\n notes: [\n \"Shipped 4 of 5 planned features\",\n \"Customer satisfaction up 12%\",\n ],\n speaker: \"Alex Kim\",\n topic: \"Q2 Outcomes\",\n },\n {\n notes: [\n \"PDF generation module is top priority\",\n \"Community page scheduled for late Q3\",\n ],\n speaker: \"Jordan Lee\",\n topic: \"Q3 Feature Priorities\",\n },\n ],\n distributionList: [\"[email protected]\", \"[email protected]\"],\n guests: [\"Riya Shah (Advisor)\"],\n location: \"Conference Room B / Zoom\",\n meetingTitle: \"Q3 Product Roadmap Review\",\n nextMeeting: {\n agenda: [\"Review action items\", \"pdfme RFC walkthrough\"],\n date: \"September 19, 2026\",\n time: \"2:00 PM\",\n },\n organizer: \"Alex Kim\",\n preparedBy: \"Alex Kim\",\n time: \"2:00 PM - 3:30 PM\",\n};\n\nconst STATUS_VARIANT: Record<\n MeetingMinutesActionStatus,\n \"success\" | \"info\" | \"default\"\n> = {\n Complete: \"success\",\n \"In Progress\": \"info\",\n \"Not Started\": \"default\",\n};\n\nconst formatAttendee = (a: { name: string; role?: string }) =>\n `${a.name}${a.role ? ` — ${a.role}` : \"\"}`;\n\nconst MeetingMinutesContent = ({ data }: { data: MeetingMinutesProps }) => {\n const theme = usePdfcnTheme();\n\n const styles = StyleSheet.create({\n columnHeading: {\n fontSize: 9,\n fontWeight: \"bold\",\n marginBottom: 2,\n },\n discussionTopic: {\n marginBottom: theme.primitives.spacing[2],\n },\n listItem: {\n marginBottom: theme.primitives.spacing[1],\n },\n page: {\n backgroundColor: theme.colors.background,\n },\n });\n\n const attendeeColumns = [\n { heading: \"Attendees\", names: data.attendees.map(formatAttendee) },\n ...(data.absent?.length\n ? [{ heading: \"Absent\", names: data.absent.map(formatAttendee) }]\n : []),\n ...(data.guests?.length ? [{ heading: \"Guests\", names: data.guests }] : []),\n ];\n\n return (\n <Document title={`Minutes — ${data.meetingTitle}`}>\n <Page size=\"A4\" margin={{ bottom: 25, left: 56, right: 56, top: 56 }}>\n <PageFooter\n leftText={`Prepared by ${data.preparedBy}`}\n rightText={\n data.distributionList?.length\n ? `Distribution: ${data.distributionList.join(\", \")}`\n : undefined\n }\n sticky\n pagePadding={25}\n />\n <View style={styles.page as never}>\n <PageHeader\n variant=\"simple\"\n title={data.meetingTitle}\n subtitle={`${data.location} · Organized by ${data.organizer}`}\n rightText={data.date}\n rightSubText={data.time}\n style={{ marginBottom: 0 }}\n />\n <Section spacing=\"sm\" style={{ flexDirection: \"row\" }}>\n {attendeeColumns.map((column) => (\n <View key={column.heading} style={{ flex: 1, paddingRight: 15 }}>\n <Text\n style={styles.columnHeading}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n {column.heading}\n </Text>\n {column.names.map((name) => (\n <Text key={name} noMargin variant=\"xs\">\n {name}\n </Text>\n ))}\n </View>\n ))}\n </Section>\n <Section spacing=\"sm\">\n <Text\n style={styles.columnHeading}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Agenda\n </Text>\n {data.agenda.map((item, index) => (\n <Text key={item} style={styles.listItem} variant=\"sm\" noMargin>\n {`${index + 1}. ${item}`}\n </Text>\n ))}\n </Section>\n <Section spacing=\"sm\">\n <Text\n style={styles.columnHeading}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Discussion\n </Text>\n {data.discussions.map((discussion) => (\n <View key={discussion.topic} style={styles.discussionTopic}>\n <Text variant=\"sm\" weight=\"semibold\" noMargin>\n {discussion.topic}\n </Text>\n {discussion.speaker && (\n <Text variant=\"xs\" color=\"mutedForeground\" noMargin>\n {`— ${discussion.speaker}`}\n </Text>\n )}\n <PdfList\n variant=\"bullet\"\n gap=\"xs\"\n items={discussion.notes.map((text) => ({ text }))}\n />\n </View>\n ))}\n </Section>\n </View>\n </Page>\n <Page size=\"A4\" margin={{ bottom: 25, left: 56, right: 56, top: 56 }}>\n <PageFooter\n leftText={`Prepared by ${data.preparedBy}`}\n rightText={\n data.distributionList?.length\n ? `Distribution: ${data.distributionList.join(\", \")}`\n : undefined\n }\n sticky\n pagePadding={25}\n />\n <View style={styles.page as never}>\n <Section spacing=\"sm\">\n <Text\n style={styles.columnHeading}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Decisions\n </Text>\n {data.decisions.map((d) => (\n <View key={d.number} style={styles.discussionTopic}>\n <Text variant=\"sm\" weight=\"semibold\" noMargin>\n {`${d.number}. ${d.decision}`}\n </Text>\n {d.rationale && (\n <Text variant=\"xs\" color=\"mutedForeground\" noMargin>\n {d.rationale}\n </Text>\n )}\n </View>\n ))}\n </Section>\n <Section spacing=\"sm\">\n <Text\n style={styles.columnHeading}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Action Items\n </Text>\n <Table variant=\"grid\" zebraStripe>\n <TableHeader>\n <TableRow header>\n <TableCell>Task</TableCell>\n <TableCell align=\"center\">Owner</TableCell>\n <TableCell align=\"center\">Due Date</TableCell>\n <TableCell align=\"center\">Status</TableCell>\n </TableRow>\n </TableHeader>\n <TableBody>\n {data.actionItems.map((item) => (\n <TableRow key={item.task}>\n <TableCell>{item.task}</TableCell>\n <TableCell align=\"center\">{item.owner}</TableCell>\n <TableCell align=\"center\">{item.dueDate}</TableCell>\n <TableCell align=\"center\">\n <Badge\n variant={STATUS_VARIANT[item.status]}\n size=\"sm\"\n label={item.status}\n />\n </TableCell>\n </TableRow>\n ))}\n </TableBody>\n </Table>\n </Section>\n {data.nextMeeting && (\n <Section\n spacing=\"sm\"\n variant=\"highlight\"\n accentColor={data.accentColor}\n >\n <Text\n style={styles.columnHeading}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Next Meeting\n </Text>\n <Text variant=\"sm\" weight=\"medium\" noMargin>\n {`${data.nextMeeting.date} · ${data.nextMeeting.time}`}\n </Text>\n {data.nextMeeting.agenda && (\n <PdfList\n variant=\"bullet\"\n gap=\"xs\"\n items={data.nextMeeting.agenda.map((text) => ({ text }))}\n />\n )}\n </Section>\n )}\n </View>\n </Page>\n </Document>\n );\n};\n\nexport const MeetingMinutesDocument = ({\n theme,\n data,\n ...props\n}: {\n theme?: PdfcnTheme;\n data?: MeetingMinutesProps;\n} & Partial<MeetingMinutesProps>) => (\n <PdfcnThemeProvider theme={theme}>\n <MeetingMinutesContent data={{ ...sampleData, ...data, ...props }} />\n </PdfcnThemeProvider>\n);\n",
"type": "registry:block",
"target": "components/pdf/blocks/meeting-minutes/meeting-minutes.tsx"
},
{
"path": "registry/bases/forme/blocks/meeting-minutes/meeting-minutes.types.ts",
"content": "export interface MeetingMinutesAttendee {\n name: string;\n role?: string;\n}\n\nexport interface MeetingMinutesDiscussion {\n topic: string;\n notes: string[];\n speaker?: string;\n}\n\nexport interface MeetingMinutesDecision {\n number: number;\n decision: string;\n rationale?: string;\n}\n\nexport type MeetingMinutesActionStatus =\n | \"Not Started\"\n | \"In Progress\"\n | \"Complete\";\n\nexport interface MeetingMinutesActionItem {\n task: string;\n owner: string;\n dueDate: string;\n status: MeetingMinutesActionStatus;\n}\n\nexport interface MeetingMinutesNextMeeting {\n date: string;\n time: string;\n agenda?: string[];\n}\n\nexport interface MeetingMinutesProps {\n meetingTitle: string;\n date: string;\n time: string;\n location: string;\n organizer: string;\n attendees: MeetingMinutesAttendee[];\n absent?: MeetingMinutesAttendee[];\n guests?: string[];\n agenda: string[];\n discussions: MeetingMinutesDiscussion[];\n decisions: MeetingMinutesDecision[];\n actionItems: MeetingMinutesActionItem[];\n nextMeeting?: MeetingMinutesNextMeeting;\n preparedBy: string;\n distributionList?: string[];\n accentColor?: string;\n renderingBase?: \"takumi\" | \"forme\";\n}\n",
"type": "registry:block",
"target": "components/pdf/blocks/meeting-minutes/meeting-minutes.types.ts"
}
],
"type": "registry:block"
}