Socket
Socket
Sign inDemoInstall

@aaronshaf/star-rating

Package Overview
Dependencies
4
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @aaronshaf/star-rating

Star rating component. Upgrades input element.


Version published
Weekly downloads
3
Maintainers
1
Install size
49.7 kB
Created
Weekly downloads
 

Readme

Source

star-rating

Star rating component. Upgrades input element.

NPM JavaScript Style Guide

Install

npm install --save @aaronshaf/star-rating

Usage

import React, { Component } from "react";
import StarRating from "@aaronshaf/star-rating";

const Example = () => {
  return (
    <StarRating size="2rem">
      <input
        type="number"
        onChange={handleChange}
        min="1"
        max="5"
        step="1"
        value="0"
      />
    </StarRating>
  );
};

License

MIT © aaronshaf

FAQs

Last updated on 22 Dec 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc