Skip to content

atomcorp/likert-or-not

Repository files navigation

likert-or-not

Demo!

Example image

React component

NPM JavaScript Style Guide

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

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

About

A simple matrix questionnire component for React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published