email-agent
v1.1.0
Published
A React component for sending emails via the Resend API.
Downloads
6
Readme
@agentverse/email-agent
A React component for sending emails via the Resend API.
Installation
npm install @agentverse/email-agentUsage
import { EmailAgent } from '@agentverse/email-agent';
function App() {
return (
<EmailAgent
apiKey="your-resend-api-key"
from="[email protected]"
/>
);
}Props
| Prop | Type | Required | Description |
|------|------|----------|-------------|
| apiKey | string | Yes | Your Resend API key |
| from | string | Yes | Verified sender email address |
Features
- Simple, intuitive email form
- Built-in validation
- Success/error messaging
- TypeScript support
- Zero dependencies (except React)
Development
Local Development with npm link
- Build the package:
npm run build- Create a global symlink:
npm link- In your test project:
npm link @agentverse/email-agentWatch Mode
For active development, use watch mode:
npm run watchThis will automatically recompile on changes.
License
MIT
