eds-card-cta

Explore the Interactive Component

Use the playground below to experiment with the component. Click the button to view the full Storybook deployment for additional examples and configurations.

eds-card-cta Open in Storybook

See It in Use with Code

Check out the practical implementations of component.

Passing Links as a JSON String (Plain HTML)

When you’re using the component directly in HTML (or in frameworks that don’t support property binding), you must pass the links as a JSON string:

Custom Actions

To replace the default primary/secondary buttons (e.g. with router links or modal triggers), project your own controls into the actions slot:

Using Property Binding

In frameworks like React or Angular, you can take advantage of property binding:

In React

In Vue

Overview

EdsCardCta is a call-to-action card component with title, description, action buttons, and footer links.

Key features:

  • Large title with line breaks
  • Description text
  • Primary and secondary action buttons
  • Footer links in a row
  • Animated rotating radial gradient background
  • Green border with hover effects
  • Variant support (default/inverse)

This component is ideal for landing pages, campaign sections, and conversion-focused layouts.

Properties

PropertyAttributeDescriptionTypeDefault
description (required)descriptionThe description text below the titlestringundefined
linkslinksFooter links as JSON string or array of link objects Example: [{“label”: “GitLab Repository”, “url”: “#”}, {“label”: “Storybook”, “url”: “#”}]CtaLink[] | string[]
primaryButtonTextprimary-button-textText for the primary action buttonstring'Get started'
primaryButtonUrlprimary-button-urlURL for the primary action buttonstringundefined
secondaryButtonTextsecondary-button-textText for the secondary action buttonstringundefined
secondaryButtonUrlsecondary-button-urlURL for the secondary action buttonstringundefined
title (required)titleThe main title text (supports HTML for line breaks)stringundefined
variantvariantVisual variant: ‘default’ for brand-black background, ‘inverse’ for white background"default" | "inverse"'default'

Dependencies

Depends on

Graph

graph TD;
  eds-card-cta --> eds-button
  eds-card-cta --> eds-link
  eds-button --> eds-icon-wrapper
  eds-link --> eds-icon-wrapper
  style eds-card-cta fill:#f9f,stroke:#333,stroke-width:4px

Built with StencilJS