1.0.8 • Published 2 months ago
@techaxis/formnex-start v1.0.8
Formnex Starter
A CLI tool to add contact and waitlist starter forms to Next.js apps.
Overview
Pre-made components to get you started with Formnex.
- Contact form with Server Action
- Waitlist form with Server Action
Usage
- Create a form endpoint in your Formnex dashboard.
- Create a Next.js app (typescript, tailwind, shadcn/ui, Next15)
- Use the npx command to install the components
npx @techaxis/formnex-start
It will add the following files to your project:
- app/contact/page.tsx
- app/contact/form.tsx
- app/contact/action.ts
- app/waitlist/page.tsx
- app/waitlist/form.tsx
- app/waitlist/action.ts
Make sure to add the following to your .env.local file:
FORMNEX_API_KEY=your_api_key
FORMNEX_ENDPOINT_URL=your_endpoint_url
You can always reference the example project in this repo for more details.