Work in Progress
This library is still a work in progress and things will likely change.
Included with Starter Kit
We use Goform to handle forms. The Astro Starter Kit comes with some components to make building those forms a little easier.
---
import Goform from '@components/Goform.astro';
---
<Goform id="goform-id" withRecaptcha withSubmitButton>...</Goform>
You can then build your form using HTML or the input components provided. It’s recommended you use the provided components for styling consistency.
---
import Goform from '@components/Goform.astro';
import TextInput from '@components/Form/TextInput.astro';
import TextAreaInput from '@components/Form/TextAreaInput.astro';
---
<Goform id="example" withRecaptcha withSubmitButton>
<TextInput name="name" label="Name" />
<TextInput name="email" label="Email" type="email" />
<TextInput name="phone" label="Phone" type="tel" optional />
<TextAreaInput name="message" label="Message" />
</Goform>
We use cookies to provide the best experience.