# Contact blocks

> Contact, demo, and inquiry forms with labels, descriptions, and every state designed.

Source: https://www.honestui.com/docs/marketing/contact

Labels stay visible, errors say what to do, and focus goes to the first field that needs attention. When a message is sent, the confirmation takes the place of the form at the same height and receives focus. Until you pass `onSubmit`, the forms wait a moment and succeed, and nothing is sent.

## Split contact form [#split-contact-form]

An introduction and real contact details beside a form.

<BlockPreview name="contact-split-form" />

| Detail         | Guidance                                                                                                                                                                                                                              |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Use it for     | A general contact page.                                                                                                                                                                                                               |
| Content        | Three to five fields and two or three contact details.                                                                                                                                                                                |
| Optional       | The details, the note, and the field descriptions.                                                                                                                                                                                    |
| States         | Default, invalid, submitting, sent, and failed. Use the controls above the preview to see the last two.                                                                                                                               |
| Requires       | [Foundation](/docs/marketing/foundation), [Button](/docs/components/button), [Field](/docs/components/field), [Input](/docs/components/input), [Native Select](/docs/components/native-select), [Textarea](/docs/components/textarea) |
| Goes well with | [Open question grid](/docs/marketing/faqs#open-question-grid), [Product directory footer](/docs/marketing/footers#product-directory-footer)                                                                                           |

## Demo request [#demo-request]

A short form beside an account of what happens after it: when you reply, what the call covers, and what the visitor keeps.

<BlockPreview name="contact-demo-request" />

| Detail         | Guidance                                                                                                                                                                                                                              |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Use it for     | Products sold with a call.                                                                                                                                                                                                            |
| Content        | Up to four fields and three steps.                                                                                                                                                                                                    |
| Optional       | The host and the note.                                                                                                                                                                                                                |
| States         | Default, invalid, submitting, sent, and failed.                                                                                                                                                                                       |
| Requires       | [Foundation](/docs/marketing/foundation), [Button](/docs/components/button), [Field](/docs/components/field), [Input](/docs/components/input), [Native Select](/docs/components/native-select), [Textarea](/docs/components/textarea) |
| Goes well with | [Signature quote](/docs/marketing/testimonials#signature-quote), [Product directory footer](/docs/marketing/footers#product-directory-footer)                                                                                         |

## Studio inquiry [#studio-inquiry]

A project brief, asked for in the order people think about one. Service and budget are single choices, so a phone needs few taps.

<BlockPreview name="contact-studio-inquiry" />

| Detail         | Guidance                                                                                                                                                                                                                              |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Use it for     | Studios and services.                                                                                                                                                                                                                 |
| Content        | Three to five fields and two or three short notes.                                                                                                                                                                                    |
| Optional       | The notes and any field that is not required.                                                                                                                                                                                         |
| States         | Default, invalid, submitting, sent, and failed.                                                                                                                                                                                       |
| Requires       | [Foundation](/docs/marketing/foundation), [Button](/docs/components/button), [Field](/docs/components/field), [Input](/docs/components/input), [Native Select](/docs/components/native-select), [Textarea](/docs/components/textarea) |
| Goes well with | [Editorial quote grid](/docs/marketing/testimonials#editorial-quote-grid), [Studio footer](/docs/marketing/footers#studio-footer)                                                                                                     |

## Usage [#usage]

Every prop has a default, so a block renders as soon as it is installed. Pass your own content to replace it.

```tsx
"use client"

import { ContactSplitForm } from "@/components/marketing/contact-split-form"

export function Contact() {
  return (
    <ContactSplitForm
      onSubmit={async (data) => {
        const response = await fetch("/api/contact", { method: "POST", body: data })
        if (!response.ok) throw new Error("Not sent")
      }}
    />
  )
}
```

### ContactSplitForm [#contactsplitform]


  ### `fields`

type: `MarketingField[]`

Text, email, phone, textarea, select, and single-choice fields.

  ### `onSubmit`



Promise<void> | void">
    Sends the form. Throw to show the failed state.

  ### `success`

type: `{ title, description }`

What the visitor reads after sending.

  ### `initialStatus`

type: `FormStatus` · default: `&#x22;idle&#x22;`

Starts in a given state, for previews and tests.
