RatingStars

Shows a static rating of a service such as a hotel.

RatingStars

To implement RatingStars component into your project you’ll need to add the import:

import RatingStars from "@kiwicom/orbit-components/lib/RatingStars";

After adding import into your project you can use it simply like:

<RatingStars rating={3} size="medium" color="attention" showEmpty />

Props

Table below contains all types of the props available in RatingStars component.

NameTypeDefaultDescription
colorenum"primary"The color of stars.
dataTeststringOptional prop for testing purposes.
idstringSet id for RatingStars
sizeenum"small"The size of stars.
showEmptybooleanfalseShow empty stars.
ratingnumberThe rating number to display.

enum

sizecolor
"small""primary"
"medium""secondary"
"large"