Skip to content

Latest commit

 

History

History

ebay-star-rating

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

EbayStarRating

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

Demo

Storybook

Usage

yarn add @ebay/ui-core-react

Import JS

import { EbayStarRating } from '@ebay/ui-core-react/ebay-star-rating'

Import following styles from Skin

import '@ebay/skin/star-rating'

...or using SCSS/CSS

import '@ebay/skin/star-rating.css'
<EbayStarRating aria-label="Star Rating" value="1"/>
<EbayStarRating aria-label="Star Rating" value="0-5"/>

Attributes

Name Type Stateful Description
a11yText String No Yes
value String No Yes