Skip to main content

CtaBlock

Overview

CtaBlock represents a call-to-action component within the content model. It is used to highlight actionable elements such as buttons or links.

Attributes

id

type: string (optional)

A unique identifier for the CTA block.

type

type: literal = 'cta'

Discriminant for this block type.

label

type: string (optional)

The label text displayed on the CTA.

type: UrlStorefrontLink

The link associated with the CTA, pointing to a specific page or URL.

variant

type: ButtonVariant (optional)

The visual style of the CTA button.

type: ModalBlock (optional)

Optional modal block associated with the CTA, triggered when the CTA is clicked.