Feedback & overlays / Compose modal

Feedback & overlays

Compose modal

The centred new-message window for long-form composition: To with Cc and Bcc, Subject, the message, formatting, and Send.

import { EcoComposeModal } from "vue-ecosphere"

Compose

Fill in To and a message to enable Send. The font button shows the formatting bar; the chevron schedules.

With a record rail

Context about the recipient beside the draft.

API

NameTypeDefaultDescription
v-model:openbooleanfalseShows cmodal and cscrim (teleported to body). Escape and × close it; focus is trapped and returns.
v-model:to / cc / bcc / subject / bodystring""The fields. Cc and Bcc rows appear when their toggle is pressed.
titlestring"New message"cmodal__t.
sendLabelstring"Send"Primary action. Disabled until To and a subject or message are filled (or sendEnabled).
schedulablebooleantrueShows the split-btn chevron (emits schedule).
sendLoadingbooleanfalseThe send is running: Send shows a spinner and ignores clicks, and ×, Discard and Escape do nothing. Close it yourself on success; clear it on failure so the draft stays.
whenstring—Scheduled time shown in the footer (cwhen).
dismissiblebooleanfalseClose on a scrim click (off: a stray click should not throw away a draft).
#toslot—Replace the To input (e.g. a recipient picker).
#railslot—Record context in the crail side panel (cmodal.has-rail).
@send / @schedule / @attach / @discard / @format / @closeevents—send carries { to, cc, bcc, subject, body }; format carries b | i | u | ul | ol | quote | link | clear.