Skip to content
API reference

blocks/composer

Import
import * as api from "@fungi.computer/caps/blocks/composer";
Kind Export Description
type alias ComposerProps Props accepted by Composer.
constant Composer One composer surface: attachments, then the text, then a slim row along the bottom edge holding the toolbar and, at its end, the action. It draws no box of its own: the host region is the field. Layout and slots only; it never assigns action-control semantics.

ComposerPropstype alias

Section titled “ComposerProps”
Signature
type ComposerProps = HTMLAttributes<HTMLDivElement> & object;

Props accepted by Composer.

Name Type Description
input ReactNode The caller-owned field, typed into directly: the surface is the field.
action? ReactNode The caller-owned key at the end of the bottom row, such as a SendAction.
toolbar? ReactNode Caller-owned controls and readouts along the bottom edge, before the action.
attachments? ReactNode Caller-owned items riding with the draft, shown above the text.

Composerconstant

Section titled “Composer”
Signature
const Composer: ForwardRefExoticComponent<
HTMLAttributes<HTMLDivElement> & object & RefAttributes<HTMLDivElement>
>;

One composer surface: attachments, then the text, then a slim row along the bottom edge holding the toolbar and, at its end, the action. It draws no box of its own: the host region is the field. Layout and slots only; it never assigns action-control semantics.