A button that triggers window.print() to print or save the current page as PDF.
| Field | Type | |
|---|---|---|
| label | string (default "Print this page") | required |
| align | left, center, or right | required |
| size | sm, md, or lg | required |
| accent | hex colour for button background | required |
| icon | boolean (default true) — show printer emoji prefix | required |
{
"type": "print_button",
"align": "center",
"size": "md",
"accent": "#6366f1"
}
{
"identifier": "urn:air:a2uicatalog.ai:atom:print_button",
"displayName": "Print Button",
"type": "application/vnd.a2ui.atom+json",
"url": "https://a2uicatalog.ai/atoms/print_button",
"capabilities": [
"gas",
"web"
],
"description": "",
"representativeQueries": [
"show a A button that triggers window.print() to print or save the current page as PDF",
"render a print button"
]
}
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 →