A CLI tool to add contact and waitlist starter forms to Next.js apps.
Pre-made components to get you started with Router.
- Contact form with Server Action
- Waitlist form with Server Action
- Create a form endpoint in your Router dashboard.
- Create a Next.js app (typescript, tailwind, shadcn/ui, Next15)
- Use the npx command to install the components
npx @9d8/router-start
It will add the following files to your project:
- app/contact/page.tsx
- app/waitlist/page.tsx
- app/contact/form.tsx
- app/waitlist/form.tsx
- app/contact/action.ts
- app/waitlist/action.ts
Make sure to add the following to your .env.local file:
ROUTER_API_KEY=your_api_key
You can always reference the example project in this repo for more details.