@aaronshaf/star-rating

Star rating component. Upgrades input element.

Usage no npm install needed!

<script type="module">
  import aaronshafStarRating from 'https://cdn.skypack.dev/@aaronshaf/star-rating';
</script>

README

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