React component
The aim is to provide a simple matrix questionnire component for React.
It should be simple, responsive, accessible and easily extensible.
Work in progress
Install:
npm i -D likert-or-not
My references/see also
- https://en.wikipedia.org/wiki/Questionnaire_construction
- https://www.surveymonkey.com/curiosity/whats-best-way-design-matrix-question/
- https://github.com/rage/likert-react
import * as React from 'react';
import LikertOrNot from 'likert-or-not';
class Example extends React.Component {
render() {
return (
<LikertOrNot
title="The title"
headers={['Good', 'OK', 'Bad']}
values={['A', 'B', 'C']}
rows={[
{
label: 'This goes on the left',
id: 'firstRow',
value: 'A',
},
]}
handleClick={(e, {id, value}) => ({})}
/>
);
}
}
https://github.com/transitive-bullshit/create-react-library
MIT © atomcorp