New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-poller

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-poller

A React poll widget with a chart for displaying voting results.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
0
Created
Source

React Poll Widget

A customizable React component for creating interactive polls with visual results displayed as charts. This package aims to provide a user-friendly experience for gathering opinions and feedback.

Features

  • Easy-to-use polling widget
  • Displays voting results using interactive chart
  • Incremental improvements and updates as I go!

Working on v2

  • CSS styling
  • More customizations!

Installation

You can install the package via npm:

npm install react-poller

Usage

import React from 'react';
import {PollWidget} from 'react-poller';

const App = () => {
  const question = "What is your favorite color?";
  const options = ["Red", "Green", "Blue"];

  return (
    <div>
      <PollWidget question={question} options={options} />
    </div>
  );
};

export default App;

Props

PropTypeDescription
questionstringThe question to be displayed for the poll.
optionsarrayAn array of strings representing the poll options.

Keywords

react

FAQs

Package last updated on 29 Oct 2024

Did you know?

Socket

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.

Install

Related posts