KANTO DS v1.12.0
Customise

Theme

Accent

Font

Corners

Density

Text size

Reset to Kanto
Blocks

kt-hero

GitHub Copy link

The top of a page: what the product is, in a heading and a line, and the way in.

Preview

New Recurring invoices Start free Book a demo Free for three months. No card needed.

The top of a page: what the product is, in a heading and a line, and the way in.

<kt-hero heading="Invoices that pay themselves" lead="Send, chase and reconcile, in one place."> <a slot="announcement" href="/changelog">New: recurring invoices</a> <kt-button slot="actions" size="large">Start free</kt-button> <kt-button slot="actions" size="large" variant="secondary">Book a demo</kt-button> <span slot="note">Free for three months. No card needed.</span> <img slot="media" src="/screenshot.png" alt="The invoices screen" /> </kt-hero>

Layout

layoutWhat it does
stackedThe default: the media under the words — a screenshot, a live demo.
splitThe media beside the words once the hero is 880px wide; under them below.

align centres the words — the default — or keeps them at the start. The layout follows the hero's own width, so it holds in a preview as on a page. An empty slot takes no room.

Slots

SlotWhere
announcementAbove the heading: what is new, as a link or a badge.
actionsUnder the lead: the buttons.
noteUnder the actions: what it costs, what it needs.
mediaA screenshot, an illustration, a live demo.

Accessibility

A section named by its heading — an <h1>, since a hero opens its page; heading-level changes it. An image in media needs its own alt.

API

PropertyAttributeTypeDefault
headingheadingstring''
leadleadstring''
alignalign'center' | 'start''center'
layoutlayout'stacked' | 'split''stacked'
headingLevelheading-levelnumber1
CSS propertyWhat it sets
--kt-block-paddingThe room above and below, as in every block