Data
- Components
- Data
- Rating
Rating
type: "rating"7 styles · 19 propertiesA 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







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 itExamples
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.
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.pngconst res = await fetch(`https://render.imejis.io/v1/${process.env.IMEJIS_DESIGN_ID}`, {
method: "POST",
headers: {
"dma-api-key": process.env.IMEJIS_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
"score.iconShape": "star",
"score.value": 3.5
}),
})
if (!res.ok) throw new Error(`render failed: ${res.status}`)
const image = Buffer.from(await res.arrayBuffer())import os
import requests
response = requests.post(
f"https://render.imejis.io/v1/{os.environ['IMEJIS_DESIGN_ID']}",
headers={
"dma-api-key": os.environ["IMEJIS_API_KEY"],
"Content-Type": "application/json",
},
json={
"score.iconShape": "star",
"score.value": 3.5
},
)
response.raise_for_status()
with open("image.png", "wb") as f:
f.write(response.content)Properties
Every property works the same in the editor, in design JSON and as an API override.
19 properties shown
| Property | Type | Default | What it does |
|---|---|---|---|
| Data | |||
value | number | 3 | Current rating value (supports fractions). |
max | number | 5 | Total number of icons. |
customPath | string | — | SVG path for the icon when iconShape is 'custom'. |
customEmoji | string | — | Emoji used as the icon when iconShape is 'custom'. |
| Look | |||
iconShape | 'star' | 'heart' | 'circle' | 'custom' | "star" | Icon used for each rating unit. |
activeColor | color | "#FBBF24" | Color of filled (active) icons. |
inactiveColor | color | "#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. |
perRow | number | 0 | Icons per row before wrapping (0 = single row). |
| Values and labels | |||
showValue | boolean | false | Show 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"). |
valueColor | color | "#374151" | Color of the numeric label. |
| Frame | |||
opacity | number | 1 | Overall component opacity from 0 (transparent) to 1 (opaque). |
borderWidth | number | 0 | Border thickness in pixels around the component. |
borderColor | color | "transparent" | Border color (any CSS color). |
borderStyle | 'solid' | 'dashed' | 'dotted' | 'double' | 'none' | "solid" | Border line style. |
borderRadius | number | 0 | Corner radius in pixels. |
boxShadow | string | — | 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.
Where the rating component fits
Free tools built on it, guides that use it, and the components that sit beside it.