Magoo Component UI logo Magoo Component UI
← Catalog

Note Composer

note-composer molecule experimental

A compact quick-note input for CRM timelines, with mention and attach affordances and a Save action.

Also in: Forms

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
Initials

Props

NameTypeReq
placeholder string
avatar image
initials string

Related components

How to use

behavior.js wires the interaction. On form submit (the Save button, or Enter in a browser that submits) it dispatches a bubbling "note:save" CustomEvent whose detail.value is the trimmed note text, then clears and refocuses the field. Empty notes are ignored. There is no network call - the host app listens for the event and persists the note. The portable self-init reads no props object; any config would come from data-* attributes.

Use cases

formlist-item WCAG AA SEO 20 dir: both ai-generated