Form

Form submits named fields to a Solution API without draft state, imports, or page navigation. Form validation runs before the request; Python schemas remain authoritative.

This is a LongLink-specific component.

longlink docs --component "Form"
/** Creates an item using named themed fields. */
export default function CreateItem() {
return (
<Form action="/api/items" method="post">
<Stack gap={3}>
<TextInput name="name" label="Name" required />
<NumberInput name="price" label="Price" min={0} defaultValue={0} required />
<Stack direction="horizontal" gap={2}>
<Button type="submit" label="Submit" variant="primary" />
<Button type="reset" label="Reset" />
</Stack>
</Stack>
</Form>
);
}