KANTO DS v1.12.0
Customise

Theme

Accent

Font

Corners

Density

Text size

Reset to Kanto
Blocks

kt-cta

GitHub Copy link

The ask at the end of a page: a heading, a line, and the button that acts on them.

Preview

Start free Talk to sales Free for three months. No card needed.

The ask at the end of a page: a heading, a line, and the button that acts on them.

<kt-cta heading="Start sending invoices" lead="Your first invoice goes out in two minutes."> <kt-button slot="actions" size="large">Start free</kt-button> <kt-button slot="actions" size="large" variant="secondary">Talk to sales</kt-button> <span slot="note">Free for three months. No card needed.</span> </kt-cta>

Variants and layout

variantWhat it does
panelThe default: on a tinted panel, the page's last word.
plainOn the page, for a call to action between sections.

stacked, the default layout, puts the actions under the words; inline sets them at the end, beside the words, once the block is 720px wide — under them below. align centres the words, the default, or keeps them at the start. An empty slot takes no room.

Accessibility

A section named by its heading, an <h2> by default (heading-level). Say what the button does — Start free, not Click here.

API

PropertyAttributeTypeDefault
headingheadingstring''
leadleadstring''
variantvariant'panel' | 'plain''panel'
layoutlayout'stacked' | 'inline''stacked'
alignalign'center' | 'start''center'
headingLevelheading-levelnumber2
SlotWhat goes in it
actionsThe buttons.
noteUnder them: what it costs, what it needs.