UNPKG

star-product-rating

Version:

A simple react component library that enable react developers easily use, edit, tweak and style a rating functionality on the go for products or services in an e-commerce web-application or mobile application

18 lines (14 loc) 435 B
import * as React from 'react'; interface StarRatingProps { starLength?: number; color?: string; size?: number; starStyle?: React.CSSProperties; starTextStyle?: React.CSSProperties; messages?: string[]; defaultRating?: number; newRating: (rating: number) => void; disabled?: boolean; } declare const StarRating: React.FC<StarRatingProps>; export { StarRating, type StarRatingProps };