Uai

marketingcontact-section.tsx

Color theme

block · 73/108

Contact Section

Contact options, availability, a message form with its states, and expectations.

Install

Install manuallyView source on GitHub

Composes

  • contact-section.tsx20
  • form-field.tsx4
  • status-banner.tsx2

Accessibility3 checks

  • Availability is stated in text; the status dot is decorative.
  • Required fields are validated natively before sending, and the submit stays focusable while pending with aria-disabled.
  • Success and failure render as Status Banners: success is a polite status, failure is an alert.
canvasvariant="split"marketing
Marketing sites

Talk to the Ferrow team

Questions about plans, migrations, or a tricky dispatch setup. A person reads every message.

Support is online now · Monday to Friday, 7:00–19:00 CET

  • A support specialist replies by email.
  • Use an address ending in @fail.test to preview the error state.
contact section variant

Code example

usage.tsx
"use client";import { Headset, Mail, MessagesSquare } from "lucide-react";import {  ContactSection,  ContactSectionAvailability,  ContactSectionDescription,  ContactSectionDetails,  ContactSectionError,  ContactSectionExpectation,  ContactSectionExpectations,  ContactSectionFields,  ContactSectionForm,  ContactSectionHeader,  ContactSectionOption,  ContactSectionOptionDetail,  ContactSectionOptionIcon,  ContactSectionOptionLink,  ContactSectionOptions,  ContactSectionOptionTitle,  ContactSectionReset,  ContactSectionSubmit,  ContactSectionSuccess,  ContactSectionTitle,  type ContactSectionVariant,} from "@/components/uai/contact-section";import {  FormField,  FormFieldInput,  FormFieldLabel,  FormFieldTextarea,} from "@/components/ui/uai/form-field";import { StatusBannerDescription, StatusBannerTitle } from "@/components/ui/uai/status-banner";async function send(data: FormData) {  await new Promise((resolve) => setTimeout(resolve, 700));  return String(data.get("email")).endsWith("@fail.test")    ? ("error" as const)    : ("success" as const);}export function ContactSectionPreview({ variant = "split" }: { variant?: ContactSectionVariant }) {  return (    <ContactSection variant={variant}>      <ContactSectionDetails>        <ContactSectionHeader>          <ContactSectionTitle>Talk to the Ferrow team</ContactSectionTitle>          <ContactSectionDescription>            Questions about plans, migrations, or a tricky dispatch setup. A person reads every            message.          </ContactSectionDescription>        </ContactSectionHeader>        <ContactSectionAvailability available>          Support is online now · Monday to Friday, 7:00–19:00 CET        </ContactSectionAvailability>        <ContactSectionOptions>          <ContactSectionOption>            <ContactSectionOptionIcon>              <Mail size={14} />            </ContactSectionOptionIcon>            <ContactSectionOptionTitle>Email</ContactSectionOptionTitle>            <ContactSectionOptionDetail>Replies within one business day</ContactSectionOptionDetail>            <ContactSectionOptionLink href="mailto:hello@ferrow.example">              hello@ferrow.example            </ContactSectionOptionLink>          </ContactSectionOption>          <ContactSectionOption>            <ContactSectionOptionIcon>              <Headset size={14} />            </ContactSectionOptionIcon>            <ContactSectionOptionTitle>Phone</ContactSectionOptionTitle>            <ContactSectionOptionDetail>For urgent outages</ContactSectionOptionDetail>            <ContactSectionOptionLink href="tel:+15550134200">              +1 555 013 4200            </ContactSectionOptionLink>          </ContactSectionOption>          <ContactSectionOption>            <ContactSectionOptionIcon>              <MessagesSquare size={14} />            </ContactSectionOptionIcon>            <ContactSectionOptionTitle>Community</ContactSectionOptionTitle>            <ContactSectionOptionDetail>Ask other dispatchers</ContactSectionOptionDetail>            <ContactSectionOptionLink href="#community">Open the forum</ContactSectionOptionLink>          </ContactSectionOption>        </ContactSectionOptions>      </ContactSectionDetails>      <ContactSectionForm onSend={send} aria-label="Send the team a message">        <ContactSectionFields>          <FormField required>            <FormFieldLabel>Name</FormFieldLabel>            <FormFieldInput name="name" autoComplete="name" />          </FormField>          <FormField required>            <FormFieldLabel>Work email</FormFieldLabel>            <FormFieldInput name="email" type="email" autoComplete="email" />          </FormField>          <FormField required>            <FormFieldLabel>How can we help?</FormFieldLabel>            <FormFieldTextarea name="message" rows={4} />          </FormField>          <ContactSectionExpectations aria-label="What happens next">            <ContactSectionExpectation>              A support specialist replies by email.            </ContactSectionExpectation>            <ContactSectionExpectation>              Use an address ending in @fail.test to preview the error state.            </ContactSectionExpectation>          </ContactSectionExpectations>          <ContactSectionSubmit>Send message</ContactSectionSubmit>        </ContactSectionFields>        <ContactSectionError>          <StatusBannerTitle>Your message wasn’t sent</StatusBannerTitle>          <StatusBannerDescription>            Check your connection and try again. Your text is still in the form.          </StatusBannerDescription>        </ContactSectionError>        <ContactSectionSuccess>          <StatusBannerTitle>Message sent</StatusBannerTitle>          <StatusBannerDescription>            We’ll reply within one business day. A copy is on its way to your inbox.          </StatusBannerDescription>        </ContactSectionSuccess>        <ContactSectionReset>Send another message</ContactSectionReset>      </ContactSectionForm>    </ContactSection>  );}

Manual installation

contact-section.tsx

Loading component source…

esc
ThinkingAI
MessageAI
CitationAI
AttachmentAI
Tool CallAI
Response StatusAI
Run SummaryAI
Conversation ThreadAI · Block
Research SessionAI · Block
File AnalysisAI · Block
Agent RunAI · Block
Approval CardFeedback
Empty StateFeedback
Status BannerFeedback
Progress SummaryFeedback
Inline FeedbackFeedback
Confirmation DialogFeedback
Activity TimelineFeedback
Skeleton GroupFeedback
Prompt ComposerForms
Form FieldForms
Search FieldForms
Filter BarForms
File UploadForms
Date Range PickerForms
Form Error SummaryForms
Unsaved Changes BarForms
Step IndicatorForms
Task ListData Display
Data Table ToolbarData Display
Metric CardData Display
Description ListData Display
Comparison TableData Display
Kanban BoardData Display
Calendar ViewData Display
Audit LogData Display
App HeaderNavigation
App SidebarNavigation
Breadcrumb TrailNavigation
Page TabsNavigation
Command MenuNavigation
Split PaneNavigation
Sign-in CardAuthentication
Sign-up CardAuthentication
Password RecoveryAuthentication
Code VerificationAuthentication · Block
Onboarding WizardAuthentication · Block
Workspace SetupAuthentication · Block
Coupon FieldCommerce
Quantity PickerCommerce
Cart ItemCommerce
Price SummaryCommerce
Order StatusCommerce
Product DetailCommerce · Block
Product ListingCommerce · Block
Cart DrawerCommerce · Block
CheckoutCommerce · Block
Order TrackingCommerce · Block
Subscription ManagementCommerce · Block
Announcement BarMarketing
Pricing ToggleMarketing
Testimonial CardMarketing
Product GalleryMarketing
Trust PanelMarketing
Newsletter FormMarketing
Hero SectionMarketing · Block
Feature ShowcaseMarketing · Block
Pricing SectionMarketing · Block
Testimonials SectionMarketing · Block
FAQ SectionMarketing · Block
Call to ActionMarketing · Block
Waitlist SectionMarketing · Block
Contact SectionMarketing · Block
Author CardContent
CommentContent
Reaction BarContent
Share MenuContent
Changelog EntryContent
Article PageContent · Block
Documentation PageContent · Block
Changelog PageContent · Block
Comment ThreadContent · Block
Community FeedContent · Block
Public ProfileContent · Block
Map FrameMaps
Map ControlsMaps
Map MarkerMaps
Map LegendMaps
Place CardMaps
Route SummaryMaps
Dashboard ShellApplication · Block
Settings PageApplication · Block
Profile PageApplication · Block
Team ManagementApplication · Block
Notification CenterApplication · Block
Billing PortalApplication · Block
Search ResultsApplication · Block
Resource ManagerOperations · Block
Data ExplorerOperations · Block
Import WorkflowOperations · Block
Approval QueueOperations · Block
Audit Log ViewerOperations · Block
Incident DashboardOperations · Block
Report BuilderOperations · Block
Document FieldBrazil
CEP FieldBrazil
Pix PaymentBrazil
Installment PickerBrazil