Magnetic Button

Button that follows the cursor magnetically on hover

Surfaces
apps-script-web
Fields
FieldType
textstring (alias: label, title)required
colorstring (optional, hex background)optional
Example payload
{
  "type": "magnetic_button",
  "text": "A concise description of the content."
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:magnetic_button",
  "displayName": "Magnetic Button",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/magnetic_button",
  "capabilities": [
    "apps-script-web"
  ],
  "description": "Button that follows the cursor magnetically on hover",
  "representativeQueries": [
    "show a magnetic cursor-following button",
    "button that follows the cursor magnetically on hover",
    "render a magnetic button"
  ]
}
← 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 →