@comparaonline/ui-reviews-stars-rating

yarn add @comparaonline/ui-reviews-stars-rating

Usage no npm install needed!

<script type="module">
  import comparaonlineUiReviewsStarsRating from 'https://cdn.skypack.dev/@comparaonline/ui-reviews-stars-rating';
</script>

README

@comparaonline/ui-reviews-stars-rating

Installation

yarn add @comparaonline/ui-reviews-stars-rating

Usage

import StarsRating from '@comparaonline/ui-stars-rating';

<StarsRating
  iconProps={{
    color: 'red',
    size: '1x'
  }}
  ratingProps={{
    initialRating: 1,
    stop: 3
  }}
/>

prop required type description
iconProps false object ReactFontAwesome props https://github.com/FortAwesome/react-fontawesome
ratingProps false object React Rating props https://github.com/dreyescat/react-rating