@stedefast/module-contact
v0.2.3
Published
Contact form module for Stedefast — Turnstile CAPTCHA, D1 storage, CF Email Routing or Resend, React island, admin panel
Downloads
343
Maintainers
Readme
@stedefast/module-contact
Contact form module for Stedefast — Cloudflare Turnstile spam protection, email delivery via CF Email Routing or Resend, React island form component.
Installation
pnpm add @stedefast/module-contactUsage
// stedefast.config.ts
import { defineConfig } from "@stedefast/core";
import { ContactModule } from "@stedefast/module-contact";
export default defineConfig({
modules: [
ContactModule({
to: "[email protected]",
turnstileSiteKey: process.env.TURNSTILE_SITE_KEY ?? "",
}),
],
});Place the island in any page or template:
<div data-island="ContactFormIsland" data-props="{}" />Documentation
Full docs at stedefast.dev/docs/modules/contact.
License
MIT
