DialogCards

H5P equivalent

H5P Dialog Cards

When to use

Use DialogCards for phrasebook-style content — common questions and approved responses, studied one card at a time with prev/next navigation.

Try it

Documentation demo

Use the Live demo, React, AI prompt, and Packaging / Manifest tabs below. Embedded demos disable telemetry, xAPI, and the LMS bridge. For production delivery, use the CLI template src/courseConfig.ts and LMS Go-Live.

<DialogCards
  blockId="phrase-cards"
  cards={[
    {
      front: "A colleague asks for your MFA code.",
      back: "Never share MFA codes. Walk them to the help desk instead.",
    },
    { front: "How do I report phishing?", back: "Use Report message — do not forward." },
  ]}
/>

Copy into Cursor, Copilot, or ChatGPT after the vibe coding starter context:

Read lessonkit.json and src/App.tsx before editing.

Add a DialogCards block (H5P-style: Dialog Cards) like this example inside the active <Lesson>:

<DialogCards
  blockId="phrase-cards"
  cards={[
    {
      front: "A colleague asks for your MFA code.",
      back: "Never share MFA codes. Walk them to the help desk instead.",
    },
    { front: "How do I report phishing?", back: "Use Report message — do not forward." },
  ]}
/>

Requirements:
- Import only from @lessonkit/react; use block types from block-catalog.v3.json.
- Keep existing courseId, lessonId, and navigation stable unless I ask to add a lesson.
- After edits, list changed files and what to verify in the browser (lessonkit dev).

Workflow tips: https://lessonkit.readthedocs.io/en/latest/guides/vibe-coding/prompting-and-workflows.html

See also