Cta
Call-to-action component that renders a button-styled link.
Props
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
link | Link | Yes | - | Link object with href and title |
variant | string | ButtonVariant | No | 'PrimaryFillButton' | Button variant to use |
$ | CSLPFieldMapping | No | - | CSLP mapping for editable fields |
Usage
import Cta from '@/components/molecules/Cta';
<Cta
link={{
href: "/signup",
title: "Get Started"
}}
variant="PrimaryFillButton"
/>Features
- Renders as a Next.js Link component
- Uses button styling from the Button component system
- Supports CSLP for live preview editing
- Returns
nullif no link is provided
Notes
- If variant is not a valid ButtonVariant string, defaults to
'PrimaryFillButton' - Uses
buttonVariantsutility internally for styling