Document card
A page or document preview with properties, lists and tasks that the user can edit in place, then hand back to Claude.
Display modes: inline · Source: MCP Apps for Claude kit · Inline card / Inline editing
Can you take care of this?
Here's what I found:
App
Sprint Planning - Nov 18
- Parent
- Engineering
- Type
- Meeting notes
- Date
- November 18, 2025
Agenda
- Review completed items from last week
- Discuss blockers and dependencies
- Assign new tickets for upcoming sprint
- Set sprint goals and success metrics
Action items
- To be filled during meeting
Inline height 0px fits
Small edits in place, big changes in chat
Checkboxes are real inputs
onChange returns the full updated content
#Installation
To get started, add the component to your project via the shadcn CLI:
$npx shadcn@latest add https://mcpblocks.dev/r/document-card.jsonThis also installs host-tokens, adding Claude's CSS variables and utilities like bg-host-bg to your stylesheet.
#Basic example
import { DocumentCard } from "@/components/document-card"
<DocumentCard
icon="📋"
title={page.title}
properties={[{ label: "Type", value: "Meeting notes", tag: true }]}
sections={[
{ kind: "list", heading: "Agenda", items: page.agenda },
{ kind: "tasks", heading: "Action items", items: page.tasks, placeholder: "To be filled during meeting" },
]}
onChange={(sections) => app.callServerTool({ name: "update_page", arguments: { id: page.id, sections } })}
/>#Component API
| Prop | Type | Description |
|---|---|---|
| properties | { label, value, tag? }[] | Key/value rows at the top. |
| sections | DocumentSection[] | "list" (editable text) or "tasks" (checkboxes). |
| editable | boolean | Default true. |
| onChange | (sections) => void | Fires after each edit. |