import { NAME, pattern, UI, type VNode } from "commonfabric"; // deno-lint-ignore no-empty-interface interface SubmitInputStoryInput {} export interface SubmitInputStoryOutput { [NAME]: string; [UI]: VNode; controls: VNode; } export default pattern(() => { return { [NAME]: "cf-submit-input Story", [UI]: (
), controls: (
No interactive controls. The submit button's real (trusted) click bubbles to the host carrying the typed text as event.target.value, so a pattern reads it off the trusted gesture — unlike cf-message-input's synthetic cf-send event. Use it when the submit must authorize an owner-protected write (e.g. creating a profile).
), }; });