For full stars use (rating from 0-5): ebay-star-rating-{rating} For half stars use: ebay-star-rating-{rating}-5 DS v1.0.0
yarn add @ebay/ui-core-react
import { EbayStarRating } from '@ebay/ui-core-react/ebay-star-rating'
import '@ebay/skin/star-rating'
import '@ebay/skin/star-rating.css'
<EbayStarRating aria-label="Star Rating" value="1"/>
<EbayStarRating aria-label="Star Rating" value="0-5"/>
Name | Type | Stateful | Description |
---|---|---|---|
a11yText |
String | No | Yes |
value |
String | No | Yes |