1. Components
  2. Newsletter Sign Up

Components

Newsletter Sign Up

Shows a section with a form for email input and a subscribe button. A toast icon will pop up when a user has successfully subscribed.

Basic Usage

Add your headline to the Newsletter component. Ensure your +page.server.ts has the sendmail form action to handle the sending of the email.

To import the component, use:

/src/routes/(marketing)/+page.svelte
        <script lang="ts">
    import Newsletter from "$lib/components/Newsletter.svelte"
</script>

<Newsletter/>