Manual setup
Installation
-
First, install the
astro-superforms
package:Terminal window npm install astro-superformsTerminal window pnpm add astro-superformsTerminal window yarn add astro-superforms -
Most package managers will install associated peer dependencies as well. If you see a
Cannot find package 'sveltekit-superforms'
(or similar) warning when you start up Astro, you’ll need to installsveltekit-superforms
:Terminal window npm install sveltekit-superformsTerminal window pnpm add sveltekit-superformsTerminal window yarn add sveltekit-superforms -
Then, apply the integration to your
astro.config.*
file using theintegrations
property:astro.config.mjs import { defineConfig } from "astro/config";import superforms from "astro-superforms";export default defineConfig({// ...integrations: [superforms()],});