Crease

SingleAnswerContent

Will only accept one correct answer from multiple choices.

Fields

PropTypeDefault
format
single-answer
-
question
string
-
options
string[]
-
correctAnswers
number
-

Example

const content: NonEmptyArray<SingleAnswerContent> = [
  {
    format: "single-answer",
    question: "Is the sky blue?",
    options: [
      "Yes",
      "No"
    ],
    correctAnswers: 0
  },
  {
    format: "single-answer",
    question: "Is the earth flat?",
    options: [
      "Yes",
      "No"
    ],
    correctAnswers: 1
  }
]

On this page