answer-pins

v0.0.3arrow_drop_down
v0.0.3
v0.0.2
v0.0.1
STATUS
Passing
DOWNLOADS
58
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
N/A
1 contributor
Install answer-pins as a package?
Copied
npm i @bit/clui.nui-ui.ui.challenge.answer-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 for rendering out the svg and pin in the answer options for the challenge module.

Import from bit.dev

https://bit.dev/clui/nui-ui/ui/challenge/answer-pins

yarn add @bit/clui.nui-ui.ui.challenge.answer-pins

import AnswerPins from '@bit/clui.nui-ui.ui.challenge.answer-pins';

Props

Below are the props defined for this component:

NameTypeDefaultDescription
questionChallengeQuestion--
selectedAnswersnumber[]--
onSelectAnswer(answer: ChallengeAnswer) => void--
isActiveboolean--
disabledboolean--

ChallengeQuestion

NameTypeDefaultDescription
id*number--
variant*“DEFAULT” | “SIGN” | “PIN”--
pickManyboolean--
isAttemptedboolean--
htmlstring--
hintstring--
buttonLabelstring--
imgURLstring--
imgAltstring--
answersChallengeAnswer[]--
questionData{ [key: string]: string | number }--

ChallengeAnswer

NameTypeDefaultDescription
id*number--
htmlstring--
xnumber--
ynumber--
datastring--
Properties
NameTypeDefault value
question
(required)
ChallengeQuestion
selectedAnswers
Array[]
onSelectAnswer
signature
className
string
isActive
booleantrue
disabled
booleanfalse
Help and resources