Form

Form container that holds FormElement children for collecting user input

Required Props: idSupports Children: FormElement

Structure

All styling goes in props.className as a single Tailwind utility string. Non-class props (text, src, alt, etc.) stay on their own keys. root.animation for scroll effects.

Properties

PropertyTypeDescriptionExamples
actionstring
Form submission URL
/api/submit
methodstring
GET | POST
HTTP method
Default: "POST"
-
submissionTypestring
| iframe | save | emailSave
Type of form submission
Default: ""
-
formNamestring
Name identifier for the form
My Form
formTypestring
subscribe | contact
Type of form to display
Default: "subscribe"
-
viewstring
| loading | loaded
Current form view state
Default: ""
-
loadingstring
Loading state message text
Default: "Sending..."
Submitting your form...
anchorstring
HTML anchor ID for navigation
contact-form
mailtostring
Email address for emailSave form type
you@domain.com
formSettingsobject
Advanced form settings
-
webhookEnabledboolean
POST JSON payload to webhookUrl on submit
-
webhookUrlstring
HTTPS endpoint for webhook submissions
-
successActionstring
| redirect
After successful submit
-
successUrlstring
Redirect URL when successAction is redirect
-
canDeleteboolean
-
Default: true
-
canEditNameboolean
-
Default: true
-
customobject
Editor metadata
-
classNamestring
Tailwind utility classes string. Mobile-first: unprefixed = base, md: = 768px+, sm: = 640px+, lg: = 1024px+. Includes layout, spacing, surface design, and typography.
flex flex-col gap-space-sm py-space-lg px-container-x md:flex-rowbg-primary text-primary-content rounded-box py-3.5 px-6 font-semibold
rootobject
-
-