Veil UI
Components

Contact CTA

A contact band with email, phone and a primary action.

Installation

$ npx veil-ui@latest add contact-cta

Usage

import { ContactCta } from "@/components/ui/contact-cta";

<ContactCta
  email="hello@veil-ui.dev"
  phone="+1 555 010 2030"
  action={<Button>Book a call</Button>}
/>;

Examples

Basic

Talk to our team

We will help you evaluate the registry for your organization.

Compact

Need a hand?

Our team replies within one business day.

API reference

The package exports contact-cta along with its composable parts. It forwards standard attributes to its root element; see the examples above for the component-specific props.

Accessibility

  • Pages keep a single h1 in the hero and use h2/h3 for section hierarchy.
  • Call-to-action elements are real links or buttons with discernible labels.
  • Decorative icons are aria-hidden and meaningful images require alt text.

Vue and plain HTML

This component also ships for Vue (Reka UI) and plain HTML. Install it with npx veil-ui add contact-cta --framework vue or switch the framework in components.json.

<template>
<div data-slot="contact-cta" class="flex flex-col gap-6 rounded-xl border bg-background p-8 sm:flex-row sm:items-center sm:justify-between w-full max-w-4xl"><div class="max-w-lg"><h2 class="text-xl font-semibold tracking-tight">Talk to our team</h2><p class="mt-2 text-sm text-muted-foreground">We will help you evaluate the registry for your organization.</p><div class="mt-4 flex flex-wrap gap-4 text-sm"><a href="mailto:hello@veil-ui.dev" class="inline-flex items-center gap-2 text-primary underline-offset-4 hover:underline"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-mail size-4" aria-hidden="true"><path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"></path><rect x="2" y="4" width="20" height="16" rx="2"></rect></svg> hello@veil-ui.dev</a><a href="tel:+15550102030" class="inline-flex items-center gap-2 text-muted-foreground hover:text-foreground"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-phone size-4" aria-hidden="true"><path d="M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384"></path></svg> +1 555 010 2030</a></div></div><div class="shrink-0"><button data-slot="button" data-variant="default" data-size="default" class="inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-[color,background-color,border-color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 bg-primary text-primary-foreground hover:bg-primary/90 h-9 px-4 py-2">Book a call</button></div></div>
</template>

On this page