01
Overview
Renders a focused call-to-action section with a primary button and optional secondary action.
Usage
02
When to use
Use when
- Inserting a repeated “ready to get started?” conversion section between page segments.
- Prompting sign-up or demo actions after readers consume feature or testimonial content.
Avoid when
- Building a full top-of-page hero with complex media and long-form messaging. Use Hero section instead
- Capturing an email address inline with form fields. Use Newsletter section instead
03
Examples
CallToActionSection
CallToActionSection with accent tone and primary/secondary conversion actions.
04
Props
| Name | Type | Default | Required | Bindable | Description |
|---|---|---|---|---|---|
as | 'section' | 'div' | 'section' | Wrapper element tag. | ||
title | text | req | Main CTA title. | ||
description | text | Optional supporting copy. | |||
primaryActionLabel | text | req | Label for the primary call-to-action button. | ||
secondaryActionLabel | text | Optional label for a secondary action button. | |||
onPrimaryClick | () => void | Primary action click callback. | |||
onSecondaryClick | () => void | Secondary action click callback. | |||
align | 'start' | 'center' | 'center' | Content alignment. | ||
tone | 'default' | 'accent' | 'default' | Visual tone. | ||
maxWidth | 'prose' | 'narrow' | 'wide' | 'full' | 'wide' | Max width token forwarded to Container. | ||
children | snippet | Optional supplemental content below action buttons. |