Skip to content
Calm motion: animations on this site only fade, with no movement

Assignment ​

An assignment with the instructions, the due date, a submission, and the grade

Shows a learner what to do, takes their work, and later gives the grade and the feedback.

Basic

Mic lab: record one verse three ways

To do
Due Fri 21 Nov, 23:59100 points
Record the same verse with the mic at 5 cm, 15 cm, and 30 cm. Hand in three WAV files and one line on what changed.

Quiz 1: polar patterns

Graded
Due Mon 10 Nov20 points
Grade18 / 20
✓ Handed in Mon 10 Nov, 14:02
  • title, due, points, and instructions describe the work. Line breaks in the instructions stay.
  • Before the learner hands in, a file input takes the files in v-model. accept limits the file types. Hand in emits submit with the files.
  • submitted is the time of the hand-in as text. Then the files show as a list. late marks a late hand-in.
  • grade and feedback show in a box when the work is graded.
  • A tag on top says the state in words: To do, Handed in, Handed in late, or Graded.
  • Change the words with labels or a label pack. The API table lists the keys.

Usage ​

ts
import { BlessAssignment } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
title*string—
duestring—the due date as text
pointsnumber—
instructionsstring—
submittedstring—when the work was handed in, as text; leave it out before that
lateboolean—
gradestring—the grade as text, for example "88 / 100" or "A-"
feedbackstring—
acceptstring—
labelsPartial<{ due: (when: string) => string; points: (n: number) => string; todo: string; done: string; late: string; graded: string; yourWork: string; drop: string; submit: string; submittedAt: (when: string) => string; grade: string; feedback: string; }>—
modelValueFile[][]

Events

NamePayloadDescription
update:modelValue[value: File[]]
submit[files: File[]]

Released under the MIT License. Character names and artwork belong to their owners.