Skip to content
Calm motion: animations on this site only fade, with no movement

Email view ​

An email with the sender, the recipients, the body, and attachments

Shows one email in a mail app or a help desk. To write an email, use the email composer.

Basic

Episode 41: the final edit

Ana Putri <ana@homestudio.example>
to Budi Santoso, cc Citra Dewi

Hi Budi,

The edit of episode 41 is ready. I cut the long intro and leveled the two voices. The file is at -16 LUFS.

Can you listen before Thursday? If the sponsor read sounds fine to you, I will send it to Radio Kita.

Thanks, Ana

2 attachments

MP3episode-41-final.mp348.2 MB · MP3
PDFshow-notes.pdf120 KB · PDF
  • subject, from, to, and date are required. A sender or recipient has a name and an email. The sender can also have an avatar. cc adds more recipients.
  • The recipients show by name. The ▾ button shows the full addresses. It is a toggle with aria-expanded.
  • body is plain text. A blank line starts a new paragraph. For rich mail, put your own content in the default slot. Clean any HTML from a mail server before you show it.
  • attachments is a list of files. Each file has a name, an optional description such as the size, and an optional href. They show as attachments.
  • Put buttons such as Reply in the actions slot.
  • Change the words with labels or a label pack: to, cc, details, and attachments (a function).

Usage ​

ts
import { BlessEmailView } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
subject*string—
from*BlessMailbox & { avatar?: string | undefined; }—
to*BlessMailbox[]—
ccBlessMailbox[]—
date*string—when, as text
bodystring—the body as plain text; blank lines start a new paragraph. For rich mail, use the slot
attachmentsBlessEmailAttachment[]—
labelsPartial<{ to: string; cc: string; details: string; attachments: (count: number) => string; }>—

Slots

NameScopeDescription
default—
actions—

Released under the MIT License. Character names and artwork belong to their owners.