Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 568 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 568 Bytes

grtwidgets

a set of UI widgets

Install

npm i --save grtwidgets 

widgets

  • MultipleChoice - a multiple choice question tool.
  • AppHeader - Header component for your app.

Use in your React app

import { MultipleChoice } from 'grtwidgets';


render() {
  return (<MultipleChoice
          style={{width:'500px', margin: '20px'}}
          question="Some Question String"
          answers={['Some', 'array', 'of', 'answers']}
          onAnswerSelected={anwserCallback}
          onAnswerSubmit={submitCallback} />);
}