ActionCardQuizOptions
The ActionCardQuizOptions allows for easily adding quiz options to a card.
#
UsageAn example with 3 options where the first option is the correct answer
<ActionCardQuizOptions options={["option1", "option2", "option3"], correctAnswerIndex={0}}/>
caution
Max 3 options allowed
#
PropsName | Type | Default | Description |
---|---|---|---|
options | string[] | undefined | The possible options a user can pick from. Max 3. |
correctAnswerIndex | number | undefined | The index of the correct answer in options . |
onPress | function (e: Event) => any | undefined | Callback that is called when an option is pressed. |