Component libraryContact form
Contact form
ProA premium native contact and sales form with truthful consumer-owned status states.
npx shadcn@latest add @tidal-pro/contact-formInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/contact-form.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
title is required. The root forwards native form attributes/ref, including action, method, target, noValidate, onSubmit and a composed onReset. Optional description, eyebrow, headingLevel, labels, native nameInputProps/emailInputProps/companyInputProps/messageInputProps/intentSelectProps, field refs, formErrorRef and statusRef. The optional intent selector defaults to name="intent" and supports controlled intent, defaultIntent and onIntentChange; controlled reset remains caller-owned, while an unprevented reset restores uncontrolled intent to defaultIntent or the first option. Consumer-owned status ('idle' | 'pending' | 'success' | 'error'), statusMessage, statusActionLabel/onStatusAction, errors, pending and submit labels are rendered with native validation semantics. submitButtonProps forwards native submitter attributes including formAction/formMethod/formTarget, while the component preserves required field types and native form behavior. The component never sends, stores, logs or validates against a backend; the consumer owns delivery and persistence.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.