The Basics

Source Code:

<snip-form key="YOUR_KEY">
    <!-- Your normal form -->
        <div class="mb-2">
            <label for="name" class="form-label">Full Name</label>
            <input sf-validate:required="Please enter your name" type="text" name="full_name" id="name" class="form-input" />
            <p error-show-text:full_name class="form-error-text"></p>
        <div class="mb-2">
            <label for="email" class="form-label">Email</label>
            <input sf-validate:email type="email" name="email" id="email" class="form-input" placeholder="[email protected]" />
            <p error-show-text:email class="form-error-text"></p>
        <div class="flex justify-end">
            <button type="submit" class="form-button">Submit</button>
    <!-- /Your normal form -->
<!-- This should usually go at the bottom of your page -->
<script src="" defer></script>

On this form:

Documentation reference