trade-leads-forms
v1.0.0
Published
Scaffold trade lead form components for React projects
Maintainers
Readme
Trade Leads Forms
Scaffold trade lead form components for React projects. Includes quote, discount, and feedback forms with webhook integration.
Quick Start
npx trade-leads-formsThis creates a Forms/ directory with 3 components:
GetQuotePage.tsx- Multi-step quote request formDiscountPage.tsx- VIP discount claim form with countdownFeedbackPage.tsx- Rating & feedback form with Google review redirect
Usage with custom directory
npx trade-leads-forms MyComponentsRequirements
- React 18+
- react-router-dom (for GetQuotePage navigation)
Setup
Install dependencies (if not already present):
npm install react react-router-domUpdate imports in the form files to match your project:
@/data/siteConfig- Your site configuration@/lib/utils- Your utility functions
Configure webhooks - Replace the webhook URLs with your own endpoints
Publishing your own version
- Update
package.jsonname field to your npm username - Run
npm publish - Users can then run:
npx your-package-name
License
MIT
