Email Composer
A minimal email draft with inline fields, a spacious message, and copy, expand, and send actions.
Loading component preview…
Installation
Add the component source directly to your project.
pnpm dlx shadcn@latest add https://pastaui.com/r/email-composer.jsonAPI reference
Email Composer
| Prop | Type | Default | Description |
|---|---|---|---|
recipients | string[] | — | Displays recipient addresses separated by commas. |
subject | string | — | Controls the subject line. |
body | string | — | Controls the email body. |
onRecipientsChange | (value: string[]) => void | — | Updates the recipient addresses. |
onSubmit | () => void | — | Handles sending the draft. Send is disabled when omitted. |