
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
react-likert-scale
Advanced tools
React Likert Scale is a React component that renders a Likert Scale. It is fully responsive and the styling can be customized by providing your own CSS styles.
npm install --save react-likert-scale
React Likert Scale is a JavaScript library that can be used as an ES2015 Module or UMD.
import React from 'react';
import Likert from 'react-likert-scale';
export default () => {
const likertOptions = {
question: "What is your opinion of the President’s performance?",
responses: [
{ value: 1, text: "Abysmal" },
{ value: 2, text: "Poor" },
{ value: 3, text: "Average" },
{ value: 4, text: "Good" },
{ value: 5, text: "Most Excellent, Ted" }
],
picked: val => {
console.log(val);
}
};
return (
<Likert {...likertOptions} />
)
}
This component has three props
:
question
— (string) This is the prompt that displays above the options.responses
— (array of objects) These are your options. The value
key is what is returned to
the calling application in the picked
callback.picked
— (function) Optionally, you can provide a callback function that returns the value of
the option that a user clicks on.FAQs
A React component that makes a Likert Scale for surveys or data collection.
The npm package react-likert-scale receives a total of 255 weekly downloads. As such, react-likert-scale popularity was classified as not popular.
We found that react-likert-scale demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.