Back to Components
Marketing
Newsletter Form
Email subscription form with validation and submit handling.
PropsUsage ExampleVariations
Dependencies
- clsx
- tailwind-merge
Files
- components/ui/newsletter-form.tsx
Installation
Using shadcn CLI
npx shadcn add newsletter-form --url https://ui.hampton.ioManual installation
Copy the component file to your project and install dependencies:
npm install clsx tailwind-merge