Scroll To Top

Renders an interactive button providing smooth automated viewport reset to page top.

Surfaces
webapps-script-web
Degraded on
SurfaceNote
meet-stageScroll animation shifts generate noticeable redraw lag.
googlechatRemoved — message frames prohibit floating navigation triggers.
emailInline frame actions break across email display engines.
Fields
FieldType
behaviorstring: smooth | auto. Scroll animation profile.required
Example payload
{
  "type": "scroll_to_top",
  "behavior": "smooth"
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:scroll_to_top",
  "displayName": "Scroll To Top",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/scroll_to_top",
  "capabilities": [
    "web",
    "apps-script-web"
  ],
  "description": "Renders an interactive button providing smooth automated viewport reset to page top.",
  "representativeQueries": [
    "show a quickly return viewport to top of page document",
    "renders an interactive button providing smooth automated viewport reset to page top.",
    "render a scroll to top"
  ]
}
← 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 →