Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

Contact Blocks for Astro

Astro contact form blocks with labelled fields and contact links. Preview layouts and install the source, then connect your form service.

Each block renders a real form with named, required fields and a submit button. Set form.action to your form handler and form.method to "post" (the default) or "get". The blocks do not provide a submission backend. Pass form.id for a stable form ID; field IDs use it as their prefix.

Split form

Place contact methods beside a labelled enquiry form.

Tell us what needs attention

Describe the item, the damage, and when you can bring it to the studio. These contact details are fictional.

Email us

studio@example.com

Call us

+1 202 555 0147

Visit us

14 Sample Lane, Example City

Support hours

Tuesday to Friday, 10 am to 4 pm

Contact form

Include the material, visible damage, and a preferred visit date.

bunx --bun shadcn@latest add @gnostic/contact-1
npx shadcn@latest add @gnostic/contact-1
pnpm dlx shadcn@latest add @gnostic/contact-1

Centered form

Give the form a central position after the contact introduction.

Arrange a visit to the Morrow studio

Describe the item, the damage, and when you can bring it to the studio. These contact details are fictional.

Send us a message

Contact form

Email

studio@example.com

Phone

+1 202 555 0147

Office

14 Sample Lane, Example City

Hours

Tuesday to Friday, 10 am to 4 pm

bunx --bun shadcn@latest add @gnostic/contact-2
npx shadcn@latest add @gnostic/contact-2
pnpm dlx shadcn@latest add @gnostic/contact-2

Keep the contact information available beside the enquiry fields.

Ask about a repair or collection

Describe the item, the damage, and when you can bring it to the studio. These contact details are fictional.

Email

studio@example.com

Phone

+1 202 555 0147

Office

14 Sample Lane, Example City

Hours

Tuesday to Friday, 10 am to 4 pm

Contact form
bunx --bun shadcn@latest add @gnostic/contact-3
npx shadcn@latest add @gnostic/contact-3
pnpm dlx shadcn@latest add @gnostic/contact-3

Contact details and form

Supply your own content. The section uses the selected project preset.

Timing
Monday–Friday, 9 AM–5 PM ET
Address
New York · Working everywhere

This form opens your email app. Review and send your message there.

bunx --bun shadcn@latest add @gnostic/contact-details-form
npx shadcn@latest add @gnostic/contact-details-form
pnpm dlx shadcn@latest add @gnostic/contact-details-form
PropType
contentDetailsFormContent

Section content.

TypeDetailsFormContent
class?string

Classes added to the root.

Typestring

Editorial contact

Use this section for a project enquiry with a form endpoint or email draft fallback.

Your next chapter

Make room for what’s next

Tell us about your practice and the story you want to tell. We will help you find a useful place to start.

Tell us about your studio

This opens a draft in your email app. Review it, then send it. You can also email hello@foldline.example.

bunx --bun shadcn@latest add @gnostic/contact-agency
npx shadcn@latest add @gnostic/contact-agency
pnpm dlx shadcn@latest add @gnostic/contact-agency
PropType
labelstring

Small section label.

Typestring
titlestring

Main heading text.

Typestring
accent?string

Optional italic heading text.

Typestring
description?string

Supporting copy.

Typestring
class?string

Classes for the root element.

Typestring
emailstring

Email recipient.

Typestring
buttonLabelstring

Submit control text.

Typestring
formTitlestring

Form heading.

Typestring
image?AgencyImage | null

Optional decorative image.

TypeAgencyImage | null
extended?boolean

Show company and service fields.

Typeboolean
Defaultfalse
companyTypes?string[]

Company choices for the extended form.

Typestring[]
serviceOptions?string[]

Service choices for the extended form.

Typestring[]
action?string

Optional form service endpoint. Omit to open an email draft.

Typestring

See serif accent font setup when installing this section.

Home services area

Your Neighborhood. Your Home.

Planning a remodel in the Triangle? Tell us where you live and what you have in mind.

Explore the Raleigh service area

Close to Home

Rooted in Raleigh.

  • Raleigh
  • Cary
  • Apex
  • Morrisville
  • Garner
  • Wake Forest
  • Holly Springs
  • Knightdale
  • Kitchen and bathroom remodeling
  • Whole-home renovations
  • Interior updates and finish carpentry
Check Your Location

(919) 555-0142

bunx --bun shadcn@latest add @gnostic/contact-remodify-area
npx shadcn@latest add @gnostic/contact-remodify-area
pnpm dlx shadcn@latest add @gnostic/contact-remodify-area

Home services contact

Architectural drawings spread across a work surface

Start With a Conversation

What Could Home Be?

Tell us about your space, location, and plans. The next step is a conversation about what is possible.

Sample form. No request will be sent.

bunx --bun shadcn@latest add @gnostic/contact-remodify
npx shadcn@latest add @gnostic/contact-remodify
pnpm dlx shadcn@latest add @gnostic/contact-remodify

Business hours and booking

An address, opening hours, email, and a configurable booking link.

Come as you are

Make a little time for yourself.

Tell us what you have in mind. We will help you find the right appointment.

Email for an appointmenthello@example.com

Demo salon. Address, hours, and prices are sample content.

Sable Hair Studio

12 Example Street

Your town

Tuesday–Friday
10 am–7 pm
Saturday
9 am–5 pm
Sunday–Monday
Closed
bunx --bun shadcn@latest add @gnostic/contact-hours
npx shadcn@latest add @gnostic/contact-hours
pnpm dlx shadcn@latest add @gnostic/contact-hours

Choose a contact layout

Choose the contact layout from the ways people can actually reach you. A small site may need only direct links; a detailed enquiry can use a form with a short explanation of the next step.

Pass content from Astro

Contact form variants accept content labels and form action/method props. Connect those to a real endpoint or Astro action. The block displays the form but does not send mail, validate server-side rules, or store submissions by itself.

Responsive layout and images

Check label wrapping, error messages, and keyboard order on a narrow screen. Keep email and phone links usable without the form. If a variant includes an image, supply useful context rather than an image that competes with the fields.

Compose the next section

Place Services or FAQs before contact when they answer common questions. Use Field for extra form fields.