question-pins

v0.0.10arrow_drop_down
v0.0.10
v0.0.9
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
234
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
N/A
1 contributor
Install question-pins as a package?
Copied
npm i @bit/clui.nui-ui.ui.activity.question-pins
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 pins in the questions in a activity module.

Import from bit.dev

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

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

import QuestionPins from '@bit/clui.nui-ui.ui.activity.question-pins';

Props

Below are the props defined for this component:

NameTypeDefaultDescription
question*ActivityQuestion--
selectedAnswersnumber[]--
onSelectAnswer(answer: ActivityAnswer) => void--
onOpenSignModal() => 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
NameType
question
(required)
ActivityQuestion
selectedAnswers
(required)
Array
onSelectAnswer
signature
onOpenSignModal
signature
Help and resources