X Enterprises
nuxt-x-marketing

CTA

Call-to-action section with eyebrow, title, description, icon, action buttons, and a rich background system supporting colors, gradients, patterns, and images.

CTA

XMarkCTA is the primary conversion block for a marketing page. It supports four layout variants, a rich background system that accepts color variants, gradient, image with overlay, or a decorative pattern, and configurable action buttons.

Components

<XMarkCTA />

Place this component at the end of a page or between major sections to drive a primary conversion action. The background bg prop accepts either a shorthand string ('subtle', 'bold', 'gradient', 'none') or a full configuration object for image and pattern backgrounds.

<XMarkCTA
  eyebrow="Limited time offer"
  title="Start your free trial today"
  description="No credit card required. Cancel anytime."
  icon="i-lucide-rocket"
  :buttons="[
    { label: 'Get Started Free', to: '/signup', color: 'primary' },
    { label: 'Talk to Sales', to: '/contact', variant: 'outline' },
  ]"
  variant="centered"
  bg="bold"
  size="lg"
/>

Using a background image with overlay:

<XMarkCTA
  title="Join thousands of happy customers"
  :buttons="[{ label: 'Get Started', to: '/signup' }]"
  :bg="{
    image: '/images/cta-bg.jpg',
    imageOverlay: 'heavy',
    pattern: 'dots',
    patternOpacity: 0.05,
  }"
/>

Props

PropTypeDefaultDescription
eyebrowString''Small label above the title
titleString'Ready to get started?'Main headline
descriptionString''Supporting text below the title
iconString''Lucide icon name shown above the title
buttonsArray[]Action buttons [{ label, to?, color?, variant?, icon? }]
variantString'default'Layout variant: 'default', 'centered', 'inline', 'stacked'
bgString | Object'subtle'Background config — string shorthand or { variant?, color?, image?, imageAlt?, imageOverlay?, imagePosition?, pattern?, patternOpacity? }
sizeString'md'Section padding: 'sm', 'md', 'lg'

Background bg object fields

FieldTypeDescription
variantString'subtle', 'bold', 'gradient', 'none'
colorStringCustom Tailwind class (overrides variant)
imageStringBackground image URL
imageAltStringAlt text for background image
imageOverlayString'light', 'heavy', 'gradient'
imagePositionStringTailwind object-position class
patternString'dots', 'grid', 'diagonal', 'topography', 'circuit', 'waves'
patternOpacityNumberPattern opacity (0–1), default 0.05

AI Context

category: CTA
package: "@xenterprises/nuxt-x-marketing"
components:
  - XMarkCTA
use-when: >
  Adding a conversion-focused block anywhere on a landing page — bottom
  of page, between feature sections, or as a standalone signup prompt.
typical-page-section: >
  End of landing page before the footer, or between major content sections
  as a mid-page conversion prompt.
Copyright © 2026