ButtonCta.astro component renders a styled anchor tag with an email icon and custom label. It’s designed to be used as a call-to-action button for contact links.
Props
The URL or link destination for the button
The text label displayed on the button
Usage
Import and use the ButtonCta component with the required props:Example
Create a contact button:Features
- Icon: Includes a built-in email envelope icon (SVG)
- Styling: Uses primary brand color background with light text
- Alignment: Aligns to flex-start by default
- Spacing: Gap between icon and label for clean layout
Styling Details
The component includes:- Background:
var(--color-primary) - Text color:
var(--color-light) - Border radius:
var(--border-radius) - Padding: 0.5rem 1rem
- Icon size: 1.5rem × 1.5rem
- Font weight: 300 for light appearance