Skip to content
Get Pro

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.json

API reference

Email Composer

Email Composer properties
PropTypeDefaultDescription
recipientsstring[]Displays recipient addresses separated by commas.
subjectstringControls the subject line.
bodystringControls the email body.
onRecipientsChange(value: string[]) => voidUpdates the recipient addresses.
onSubmit() => voidHandles sending the draft. Send is disabled when omitted.