Contact Form Card

Validated on blur and submit with announced inline errors (shake + focus jump), optional async onSubmit with a sending morph, a drawn-check success scene with a particle burst, and a failure state with Retry that keeps everything typed.

Try it: Submit empty to see validation; fill and send; toggle “Simulate failure” to see Retry.

Installation

Install with the shadcn CLI:

npx shadcn@latest add https://www.framekitui.live/r/contact-form-card.json

Or, with the @framekit namespace registered: npx shadcn@latest add @framekit/contact-form-card. You can also copy the source into components/ui/contact-form-card.tsx (view on GitHub).

Usage

import { ContactFormCard } from '@/components/ui/contact-form-card'

Props

Component props
PropTypeDefaultNotes
onSubmit(values) => void | Promise<unknown>simulated 1.1sResolve for success, reject to show the retry state.
topicsstring[]4 topicsTopic chips.
title / descriptionstring—Header copy.
submitLabel / successTitle / successMessagestring—Copy.
maxLengthnumber600Message length limit.
headingAs'h2' | 'h3''h3'Heading element.
classNamestring—Extra classes merged onto the root.

Dependencies

  • motion
  • lucide-react
  • Social Dock

    A floating link dock whose icons swell with a spring as the pointer (or keyboard focus) nears them, with a coloured halo and a springy label chip. Generic glyphs — bring your own.

  • Client Logo Strip

    A calm trust row of generated marks with a cursor-following spotlight that lights hairline borders; marks lift and spin a few degrees on hover/focus.

  • Copy Email Button

    A pill showing your address: the glyph morphs to a check, the label rolls to “Copied”, a ring pulses out and a live region confirms. Falls back to a select hint if the clipboard is blocked.

  • Testimonial Carousel

    Large display-type quotes sliding on direction-aware springs with swipe/drag, arrow keys and a progress-filled dot for auto-advance. Pauses on hover, focus and drag.

  • Availability Badge

    A status pill with a motion language per state: “open” sends two staggered radar ripples, “limited” breathes slowly, “booked” holds still. Copy swaps on a vertical spring; optional live local clock.

  • Impact Stats

    Odometer counters: every digit is a reel spinning to its value on its own spring when the row scrolls in — right-most digits settle last, like a mechanical counter.

See all 35 Portfolio components