question-card

v0.0.8arrow_drop_down
v0.0.8
v0.0.7
v0.0.6
v0.0.5
v0.0.4
v0.0.3
v0.0.2
v0.0.1
STATUS
Passing
DOWNLOADS
130
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
N/A
1 contributor
Install question-card as a package?
Copied
npm i @bit/clui.nui-ui.ui.activity.question-card
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
chevron_left
chevron_right

Description

This component is used to show question in a activity module.

Import from bit.dev

https://bit.dev/clui/nui-ui/ui/activity/question-card

yarn add @bit/clui.nui-ui.ui.activity.question-card

import QuestionCard from '@bit/clui.nui-ui.ui.activity.question-card';

Props

Below are the props defined for this component:

NameTypeDefaultDescription
question*ActivityQuestion--
classNamestring--
isPracticeboolean--
stepIndexnumber--
stepTotalNumnumber--
onSubmit(answers: number[]) => void--

ActivityQuestion

NameTypeDefaultDescription
id*number--
variant‘DROP_SIGN’ | ‘ORDER_PINS’ | ‘PICK_ONE_PIN’ | ‘TRUE_FALSE’ | ‘PICK_ONE’ | ‘PICK_MANY’ | ‘PRACTICE_INSTRUCTION’--
htmlstring--
actionFeedbackstring--
hintstring--
buttonLabelstring--
imgURLstring--
imgAltActivityAnswer[]--
answersstring--
questionData{ [key: string]: string | number }[]--

ActivityAnswer

NameTypeDefaultDescription
id*number--
htmlstring--
imgURLstring--
xnumber--
ynumber--
Properties
NameTypeDefault value
question
(required)
ActivityQuestion
className
string
isPractice
booleanfalse
stepIndex
number
stepTotalNum
number
onSubmit
signature
Help and resources