Skip to content
Viewership Inquire
Website Components

Contact Form.

Headline and contact details beside a short native form with name, email, company and message. No JavaScript.

ConversionSection1 dependency Original, MIT

.md

Tell us about your trip.

Group bookings, repairs or a question about gear. A real person reads every message.

Replies
Within one working day

We never share your details.

Style

Using Claude Code? Give it the agent prompt and skip these steps.

  1. Import the foundation once

    foundation.css holds the tokens every component reads.

    Layout.astro
    ---
    // src/layouts/Layout.astro
    import "../styles/foundation.css";
    ---
  2. Copy ContactForm.astro

    Paste into src/components/viewership/contact-form/

  3. Copy its dependencies

    Each in its own folder, next to this one.

  4. Use it

    Page.astro
    ---
    import ContactForm from "../components/viewership/contact-form/ContactForm.astro";
    ---
    
    <ContactForm />

Props 11

PropTypeDefaultDescription
title string · Headline.
accent string · Closing words of the headline, drawn in the theme's accent style.
body string · Supporting paragraph.
details { label: string; value: string; href?: string }[] · Contact lines under the copy, such as email or reply time.
action string · Form handler URL.
method "post" | "get" "post" Form method.
company boolean true Show the optional company field.
messagePlaceholder string · Placeholder for the message box.
submitLabel string "Send message" Submit button text.
note string · Small line beside the submit button.
as "h1" | "h2" "h2" Heading element.

Source 1 file

Original, MIT.