Option 1: core keys and copy
The core of the module is display, aria_label, text, target, link and icon, plus an optional background under background.*.
text should be short and action-driven, while aria_label needs to explain where the button leads. target is normally _self but can be set to _blank for external destinations.
The module has no items array, which makes it quick to configure and easy to reuse across pages.
Option 2: auto_href logic in the compiler
The build function buildAuto() generates big_button.auto_href from link/href.
link: phonetries to build atel:link from several fallback fields (hero/contact/site/page).link: emailtries to build amailto:link from email fields or a user/domain combination.link: #sectionbecomes an internal anchor link.link: https://...becomes an external link.
If nothing matches, the explicit href is used, or the fallback #. This keeps the module robust even when the input varies between projects.
Option 3: icon choice, appearance and design
big_button.auto_svg is also generated in buildAuto(). If icon is set, it is used directly (except none). If no icon is set, one is chosen automatically from the link type (phone/email/section/link).
Styling levels:
big_button.appearancebecomesauto_class/auto_style- design colours come from
design.background_colors.big_buttonanddesign.text_colors.big_button - typography comes from
design.font_sizes.big_button
The result is a CTA that follows the design system but can still get a local visual accent through appearance tokens.
Option 4: template rendering and accessibility
In the template, the module is rendered as an <a> element with the classes card-button big-button track-clicks. The icon is injected before the text via {{big_button.auto_svg}}.
Semantically, the button uses aria-label. The CSS has a clear focus state with :focus-visible, and on mobile the button goes full width for an easier tap target.
There is no separate JS init for the module, which reduces complexity and makes its behaviour very predictable.
Option 5: schema, SEO and AI optimisation
For this module, Action is often the right schema type, especially for bookings or a clear CTA. If the button leads to a phone number or email address, ContactPoint can complement it.
Keep the schema focused on the action: use a stable @id, a clear name and a correct target. Avoid duplicating global Organization/WebPage nodes here.
For SEO, the module works best when the button text and aria-label are concrete and consistent with the page's actual conversion goal.