Calm motion: animations on this site only fade, with no movement
Email composer
To, Cc, and subject fields with recipient chips, and the message
Writes a new email or a reply. To show an email that came in, use the email view.
Basic
v-modelis the draft:toandccas lists of addresses,subject, andbody.- The To and Cc fields are tag inputs. Press Enter or a comma after each address. "Add Cc" shows the Cc field. A draft that comes with Cc addresses, for example a reply to all, shows it too.
- If an address does not look like
name@domain.tld, an error lists it and the field is marked as not valid. If the To field is empty, Send shows an error. Screen readers hear each error at once. - A good draft emits
sendwith the draft. "Discard" emitsdiscard. - The check of the addresses looks only at their shape. Your mail server must check them again.
- Change the words with
labelsor a label pack:title,to,cc,addCc,subject,body,send,discard,hint,noRecipient, andbad(a function).
Usage
ts
import { BlessEmailComposer } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
labels | Partial<{ title: string; to: string; cc: string; addCc: string; subject: string; body: string; send: string; discard: string; hint: string; noRecipient: string; bad: (addresses: string) => string; }> | — | |
modelValue | BlessEmailDraft | { to: [], cc: [], subject: "", body: "" } |
Events
| Name | Payload | Description |
|---|---|---|
update:modelValue | [value: BlessEmailDraft] | |
send | [draft: BlessEmailDraft] | |
discard | [] |