Rating Stars

A visual component allowing users to rate an item using a series of

Surfaces
webmeet-stageapps-script-web
Degraded on
SurfaceNote
googlechatCan display static stars using Unicode characters or images, but no interactive rating functionality.
emailCan display static stars using Unicode characters or images, but no interactive rating functionality.
Fields
FieldType
ratinginteger The current rating value (e.g., 3 for 3 stars).required
max_ratinginteger The maximum possible rating (e.g., 5 for 5 stars).required
is_interactiveboolean Indicates if the stars are clickable for user input.required
Example payload
{
  "type": "rating_stars",
  "rating": 75,
  "max_rating": 75,
  "is_interactive": true
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:rating_stars",
  "displayName": "Rating Stars",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/rating_stars",
  "capabilities": [
    "web",
    "meet-stage",
    "apps-script-web"
  ],
  "description": "A visual component allowing users to rate an item using a series of",
  "representativeQueries": [
    "show a star rating display stars, or displaying a static rating",
    "a visual component allowing users to rate an item using a series of",
    "render a rating stars"
  ]
}
← Full ARD catalog Try it live →
Deploy your own renderer

The renderer is open source. Deploy your own instance in 4 commands — you own the URL, no dependency on the demo endpoint.

git clone https://github.com/a2uicatalog/a2ui
cd apps-script-surface/gas-schema-renderer
clasp push && clasp deploy
Full deploy guide →