ArithmeticQuiz¶
H5P equivalent
H5P Arithmetic Quiz
When to use¶
Use ArithmeticQuiz for numeric drill — quick mental math checks with optional timeLimitSeconds.
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.
<ArithmeticQuiz
checkId="shift-handoff"
problems={[
{ question: "Phishing reports: 3 new + 2 escalated = ?", answer: "5" },
{ question: "Open tickets after closing 4 of 9 = ?", answer: "5" },
]}
/>
Copy into Cursor, Copilot, or ChatGPT after the vibe coding starter context:
Read lessonkit.json and src/App.tsx before editing.
Add a ArithmeticQuiz block (H5P-style: Arithmetic Quiz) like this example inside the active <Lesson>:
<ArithmeticQuiz
checkId="shift-handoff"
problems={[
{ question: "Phishing reports: 3 new + 2 escalated = ?", answer: "5" },
{ question: "Open tickets after closing 4 of 9 = ?", answer: "5" },
]}
/>
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.
Sync lessonkit.json — add under course.assessments[]:
{
"checkId": "arith-quiz",
"kind": "arithmeticQuiz",
"question": "Quick math check",
"problems": [
{ "question": "3 + 4", "answer": "7" }
]
}
- 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
Add under course.assessments[]:
{
"checkId": "arith-quiz",
"kind": "arithmeticQuiz",
"question": "Quick math check",
"problems": [
{ "question": "3 + 4", "answer": "7" }
]
}
See also¶
Quiz — non-numeric multiple choice