likert-or-not
v1.1.2
Published
React component
Downloads
5
Readme
likert-or-not
React component
Matrix || Grid || Multi-item scale || Likert || Rating scale && Questionnaire || Survey
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
Usage
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}) => ({})}
/>
);
}
}
Built with Create-React-Library
https://github.com/transitive-bullshit/create-react-library
License
MIT © atomcorp