Docplanner Logo

Docplanner Mobile UI

Edit page
Introduction
⚙️ – Core
⚛️ – Atoms-Molecules
AvatarBadgeButtonCheckBoxFieldCircleDividerDownloadCardIconInputFieldInputFieldButtonLinkListItemOneTimeCodeInputPhotoAvatarRadioGroupFieldRatingPropertiesBasic usageVariantsSelectFieldSimpleAvatarSpacerSwitchFieldTextToast❌ Icon (Deprecated)❌ Roboto (Deprecated)❌ WorkSans (Deprecated)
🧬 – Organisms

Rating

The Rating component is a basic component for displaying a star rating. It can be accompanied by an optional text.

Properties

stars
number
required

Number of stars to render

text
string | undefined

An optional text to explain the rating

testID
string | undefined

testID

accessibilityLabel
string | undefined

Accessibility label

starsDistance
number | undefined

Distance between stars

color
string | undefined

Color of the stars when they are active

Basic usage

4 Opinions
19 Opinions

Variants

6 Opinions (With half star)
10 Opinions
5 Opinions
9 Opinions (With half star)
3 Opinions
99 Opinions
6 Opinions (With 5 stars) and distance