AdventCalendar

H5P equivalent

H5P Advent Calendar

When to use

Use AdventCalendar for date-gated daily content — December security tips, onboarding drips, or unlock-by-day campaigns.

Optional unlockFrom ISO date controls which doors open.

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.

<AdventCalendar
  blockId="december-tips"
  doors={[
    { id: "d1", day: 1, label: "1", content: <Text>Verify sender domains.</Text> },
    { id: "d2", day: 2, label: "2", content: <Text>Lock your screen when away.</Text> },
    { id: "d3", day: 3, label: "3", content: <Text>Use MFA on every work account.</Text> },
  ]}
/>

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

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

Add a AdventCalendar block (H5P-style: Advent Calendar) like this example inside the active <Lesson>:

<AdventCalendar
  blockId="december-tips"
  doors={[
    { id: "d1", day: 1, label: "1", content: <Text>Verify sender domains.</Text> },
    { id: "d2", day: 2, label: "2", content: <Text>Lock your screen when away.</Text> },
    { id: "d3", day: 3, label: "3", content: <Text>Use MFA on every work account.</Text> },
  ]}
/>

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