Svelte · Forms and controls
Form
No summary has been written for Form. Everything below is generated from the declaration shipped in 0.44.0 and describes the real contract.Public export
typescript
import { Form } from '@happyvertical/smrt-svelte/forms';- Import path
@happyvertical/smrt-svelte/forms- Props
- 19
- Props described
- 19 of 19
- Bindable state
- 0
- Callback events
- 2
- Verified release
- 0.44.0
Props
NameTypeRequiredDescription
childrenSnippetYesForm childrenshowModeTogglebooleanNoShow mode toggle buttonshowFormListenbooleanNoShow form-level listen buttonsilenceTimeoutnumberNoSilence timeout in seconds before stoppingsttAdapterSTTAdapterTypeNoSTT adapter typellmModelLLMModelIdNoLLM model for extraction (or 'none' for regex-only)onsubmit(data: Record<string, unknown>) => void | Promise<void>NoCalled when form is submitted (if provided, prevents native submission)webmcpboolean | { name?: string; description?: string; }NoLet WebMCP propose field changes for local human review.collectionstringNoCollection/model identity used when naming the generated intent.method'GET' | 'POST'NoHTTP method for native form submission (default: GET)actionstringNoForm action URL for native form submissionformIdstringNoStable identity used by control/agent interaction adapters.subjectControlSubjectNoDefault record-qualified identity for registered fields.interactionRegistryControlInteractionRegistryNoRegistry for form control interactions and staged edits.oninteraction(event: ControlInteractionEvent) => voidNoCalled when a form control interaction event occurs.stagedReviewbooleanNoRender the built-in human review surface for staged changes.idstringNoHTML id attribute for the form element.namestringNoHTML name attribute for the form element.classstringNoCSS classes to apply to the form element.Bindable state
This component has no bindable public state.
Callback events
onsubmit(data: Record<string, unknown>) => void | Promise<void>oninteraction(event: ControlInteractionEvent) => void