Loading and Submit states

Source Code:

<!-- TIP! You can test your form's states by having mode="test" 🤯 -->
<snip-form key="YOUR_KEY" mode="live">
    <!-- Your normal form -->
    <form>
        <!-- Loader markup -->
        <div loading:show class="absolute left-0 top-0 w-full dark:bg-black bg-white bg-opacity-75 dark:bg-opacity-25 z-10 h-full rounded-md">
            <div class="flex justify-center items-center h-64">
                <div class="animate-spin rounded-full h-32 w-32 border-b-2 border-primary-500"></div>
            </div>
        </div>
        <!-- /Loader markup -->
        <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>
        <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>
        <div class="flex justify-between items-center">
            <div>
                <div submit:show style="display:none" class="text-orange-500 text-lg">One moment please</div>
            </div>
            <button submit:class="!bg-orange-500" submit:text="Submitting...." type="submit" class="form-button">Submit</button>
        </div>
    </form>
    <!-- /Your normal form -->
</snip-form>
<!-- This should usually go at the bottom of your page -->
<script src="https://cdn.snipform.io/wrap/sf.iife.js" defer></script>

On this form:

Documentation reference