Skip to content

Rating

type: "rating"7 styles · 19 properties

A row of stars, hearts, circles or custom icons filled to a value — with exact/half/rounded partial fills and an optional numeric label. Perfect for reviews and scores.

Updated

Open in the editor
Preview · DefaultReal render, 1200 × 630
Rating component, Default style, sample render
The rating component’s default look.

Try your own data

Change the rating here with the same controls the editor shows. The preview updates as you type, and you get the API request for your changes.

7 styles

Pick one to preview it

Examples

Each example is the same rating with different values. The JSON is what you send.

App store rating badge

A 4.8-star average with the decimal score alongside, ready for a landing page.

{
  "score.value": 4.8,
  "score.showValue": true,
  "score.valueFormat": "decimal",
  "score.valueColor": "#374151"
}

Weekly CSAT report

The support team satisfaction average as green stars for a Monday Slack digest.

{
  "score.value": 4.2,
  "score.activeColor": "#10B981",
  "score.showValue": true,
  "score.valueFormat": "fraction",
  "score.valueColor": "#065F46"
}

Good for

  • Product OG images showing the live review average
  • Testimonial cards with the customer score rendered as stars
  • App store rating badges for marketing sites
  • Weekly CSAT report images for Slack or email

New values, every render

Set '<key>.value' to the score for each render; max, colors and border props are overridable too. Send only the properties you want to change; everything else keeps its design value. The API guides cover every language.

Or ask your AI agent“Using imejis, make a 1200 × 630 image with a Rating component (type "rating") filled with my data, then give me a render link I can call with new values.”
curl -X POST "https://render.imejis.io/v1/$IMEJIS_DESIGN_ID" \
  -H "dma-api-key: $IMEJIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "score.iconShape": "star",
    "score.value": 3.5
  }' \
  -o image.png

Properties

Every property works the same in the editor, in design JSON and as an API override.

19 properties shown

PropertyTypeDefaultWhat it does
Data
valuenumber3Current rating value (supports fractions).
maxnumber5Total number of icons.
customPathstring—SVG path for the icon when iconShape is 'custom'.
customEmojistring—Emoji used as the icon when iconShape is 'custom'.
Look
iconShape'star' | 'heart' | 'circle' | 'custom'"star"Icon used for each rating unit.
activeColorcolor"#FBBF24"Color of filled (active) icons.
inactiveColorcolor"#E5E7EB"Color of unfilled (inactive) icons.
emptyStyle'filled' | 'outline'"filled"Whether empty icons render solid in the inactive color or as outlines.
partial'exact' | 'half' | 'round'"exact"How fractional values fill the last icon.
perRownumber0Icons per row before wrapping (0 = single row).
Values and labels
showValuebooleanfalseShow the numeric value next to the icons.
valueFormat'decimal' | 'fraction' | 'countOfTotal'"decimal"Format of the numeric label (4.5, 4.5/5, or "4 of 5").
valueColorcolor"#374151"Color of the numeric label.
Frame
opacitynumber1Overall component opacity from 0 (transparent) to 1 (opaque).
borderWidthnumber0Border thickness in pixels around the component.
borderColorcolor"transparent"Border color (any CSS color).
borderStyle'solid' | 'dashed' | 'dotted' | 'double' | 'none'"solid"Border line style.
borderRadiusnumber0Corner radius in pixels.
boxShadowstring—CSS box-shadow applied to the component, e.g. "0 4px 6px rgba(0,0,0,0.1)".

Rating questions

Can the rating value change on every API call?

Yes — send '<key>.value' with any number, including fractions like 4.3; max, colors and other properties are overridable too.

How are fractional scores like 4.3 displayed?

The partial property controls the last icon: 'exact' fills it proportionally, 'half' rounds to halves and 'round' rounds to a whole icon.

Can I use icons other than stars?

iconShape supports star, heart, circle or custom — with customEmoji for any emoji or customPath for your own SVG path.

Can I show the numeric score next to the icons?

Enable showValue and pick a valueFormat — decimal (4.5), fraction (4.5/5) or countOfTotal ("4 of 5") — with valueColor for styling.

Free tools built on it, guides that use it, and the components that sit beside it.