Magoo Component UI logo Magoo Component UI
← Catalog

Compose Email

compose-email organism experimental

A message composer card with To and Subject fields, a body editor, a format toolbar and a Send button.

The width preview needs a screen wider than the chosen width — use a larger device (or a desktop browser) to see the desktop and tablet layouts.

Default
Reply

Props

NameTypeReq
to string
subject string
body_placeholder string

Related components

How to use

behavior.js intercepts the form submit, prevents the default navigation, and dispatches a bubbling, cancelable CustomEvent "email:send" whose detail is { to, subject, body } read from the current field values. The host app performs the actual send in that listener (and may preventDefault to block it). The format/attach toolbar buttons are inert skeleton affordances — wire them up in the host if you need real formatting. The portable self-init passes no props; there is nothing to configure via data-* attributes.

Use cases

highlight WCAG AA SEO 20 dir: both ai-generated