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
| Name | Type | Default | Description |
|---|---|---|---|
v-model:open | boolean | false | Shows cmodal and cscrim (teleported to body). Escape and × close it; focus is trapped and returns. |
v-model:to / cc / bcc / subject / body | string | "" | The fields. Cc and Bcc rows appear when their toggle is pressed. |
title | string | "New message" | cmodal__t. |
sendLabel | string | "Send" | Primary action. Disabled until To and a subject or message are filled (or sendEnabled). |
schedulable | boolean | true | Shows the split-btn chevron (emits schedule). |
sendLoading | boolean | false | The 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. |
when | string | — | Scheduled time shown in the footer (cwhen). |
dismissible | boolean | false | Close on a scrim click (off: a stray click should not throw away a draft). |
#to | slot | — | Replace the To input (e.g. a recipient picker). |
#rail | slot | — | Record context in the crail side panel (cmodal.has-rail). |
@send / @schedule / @attach / @discard / @format / @close | events | — | send carries { to, cc, bcc, subject, body }; format carries b | i | u | ul | ol | quote | link | clear. |