TidalUI

Contact form preview

A premium native contact and sales form with truthful consumer-owned status states.

pro · Forms · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/contact-form

Import components/ui/tidal.css, components/ui/contact-form.css. Wrap installed components in tidal-scope.

Preview

Contact form component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/contact-form.css";
import{TidalContactForm}from"./components/ui/contact-form";
export default()=><div className="tidal-scope"><TidalContactForm title={"Demo"}/></div>;

API and props

TidalContactForm.title (required)
string

Required title value accepted by this exported component.

TidalContactForm.companyError
string | undefined

Optional company error value accepted by this exported component.

TidalContactForm.companyInputProps
ContactInputProps | undefined

Optional company input props value accepted by this exported component.

TidalContactForm.companyLabel
string | undefined

Optional company label value accepted by this exported component.

TidalContactForm.companyRef
Ref<HTMLInputElement> | undefined

Optional company ref value accepted by this exported component.

TidalContactForm.defaultIntent
string | undefined

Optional default intent value accepted by this exported component.

TidalContactForm.description
ReactNode

Optional description value accepted by this exported component.

TidalContactForm.emailError
string | undefined

Optional email error value accepted by this exported component.

TidalContactForm.emailInputProps
ContactInputProps | undefined

Optional email input props value accepted by this exported component.

TidalContactForm.emailLabel
string | undefined

Optional email label value accepted by this exported component.

TidalContactForm.emailRef
Ref<HTMLInputElement> | undefined

Optional email ref value accepted by this exported component.

TidalContactForm.eyebrow
ReactNode

Optional eyebrow value accepted by this exported component.

TidalContactForm.footer
ReactNode

Optional footer value accepted by this exported component.

TidalContactForm.formError
string | undefined

Optional form error value accepted by this exported component.

TidalContactForm.formErrorRef
Ref<HTMLDivElement> | undefined

Optional form error ref value accepted by this exported component.

TidalContactForm.headingLevel
"h2" | "h3" | "h4" | undefined

Optional heading level value accepted by this exported component.

TidalContactForm.intent
string | undefined

Optional intent value accepted by this exported component.

TidalContactForm.intentLabel
string | undefined

Optional intent label value accepted by this exported component.

TidalContactForm.intentOptions
ReadonlyArray<TidalContactIntentOption> | undefined

Optional intent options value accepted by this exported component.

TidalContactForm.intentRef
Ref<HTMLSelectElement> | undefined

Optional intent ref value accepted by this exported component.

TidalContactForm.intentSelectProps
ContactSelectProps | undefined

Optional intent select props value accepted by this exported component.

TidalContactForm.messageError
string | undefined

Optional message error value accepted by this exported component.

TidalContactForm.messageInputProps
ContactTextareaProps | undefined

Optional message input props value accepted by this exported component.

TidalContactForm.messageLabel
string | undefined

Optional message label value accepted by this exported component.

TidalContactForm.messageRef
Ref<HTMLTextAreaElement> | undefined

Optional message ref value accepted by this exported component.

TidalContactForm.nameError
string | undefined

Optional name error value accepted by this exported component.

TidalContactForm.nameInputProps
ContactInputProps | undefined

Optional name input props value accepted by this exported component.

TidalContactForm.nameLabel
string | undefined

Optional name label value accepted by this exported component.

TidalContactForm.nameRef
Ref<HTMLInputElement> | undefined

Optional name ref value accepted by this exported component.

TidalContactForm.onIntentChange
((intent: TidalContactIntentOption) => void) | undefined

Callback invoked when the intent change interaction is proposed.

TidalContactForm.onStatusAction
((status: Exclude<TidalContactFormStatus, "idle">) => void) | undefined

Callback invoked when the status action interaction is proposed.

TidalContactForm.pending
boolean | undefined

Optional pending value accepted by this exported component.

TidalContactForm.pendingLabel
string | undefined

Optional pending label value accepted by this exported component.

TidalContactForm.status
TidalContactFormStatus | undefined

Optional status value accepted by this exported component.

TidalContactForm.statusActionLabel
string | undefined

Optional status action label value accepted by this exported component.

TidalContactForm.statusMessage
string | undefined

Optional status message value accepted by this exported component.

TidalContactForm.statusRef
Ref<HTMLDivElement> | undefined

Optional status ref value accepted by this exported component.

TidalContactForm.submitButtonProps
Omit<ButtonHTMLAttributes<HTMLButtonElement>, "type" | "children"> | undefined

Optional submit button props value accepted by this exported component.

TidalContactForm.submitLabel
string | undefined

Optional submit label value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas