GitHub

cta

Call-to-action block with eyebrow, heading, body text, and an actions slot. Sits inside section() + container() — adds no padding of its own.

Get started today

Ready to build?

One spec file per page. SSR always on. Lighthouse 100 out of the box.

cta({
  eyebrow:  'Get started today',
  title:    'Ready to build?',
  subtitle: 'One spec file per page. SSR always on. Lighthouse 100 out of the box.',
  actions:  button({ label: 'Start building →', href: '/docs', variant: 'primary', size: 'lg' }) +
            button({ label: 'View on GitHub',    href: 'https://github.com/...', variant: 'ghost', size: 'lg' }),
})
PropTypeDefault
eyebrowstringSmall label above the heading
titlestringMain heading
levelnumber2Heading tag for the title (1–6). Visual style is unchanged.
subtitlestringSupporting paragraph
actionsstring (HTML)Raw HTML slot — typically button() calls
alignstring'center''center' · 'left'