Velocity X Components

Forms

Contact Form — Simple

Single-column name/email/subject/message contact form with a honeypot field, Netlify Forms opt-in, and a presentational action prop.

Free MIT licensed. Install it with the CLI — no account, no key.
bash
$ velocityx add contact-form-simple

Built for astro.

Full docs for Contact Form — Simple →

astro v1.0.0
Contact Form — Simple

Let's talk

Tell me a bit about your project and I will get back to you within one business day.

No spam. I reply personally.

Props

NameTypeRequiredDefaultDescription
actionstringNo'#'
methodstringNo'POST'
netlifybooleanNofalse
formNamestringNo'contact'
headingstringNo"Let's talk"
subheadingstringNo'Tell me a bit about your project and I will get back to you within one business day.'
submitLabelstringNo'Send message'
classNamestringNo''

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/contact-form-simple/ContactFormSimple.astro

Using the Contact Form — Simple component

Install it with velocityx add contact-form-simple. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Forms.