Builtin component
Zod-driven form.
| Prop | Type | Default | Description |
|---|---|---|---|
schema | z.ZodTypeAny | — | Zod schema defining form fields |
fields | PageNode[] | — | Optional custom field nodes |
onSubmit | ActionTarget | — | Action triggered on form submission |
submitLabel | string | — | Submit button text |
Form({
schema: z.object({ name: z.string().min(1), endpoint: z.string().url() }),
onSubmit: createConnection(),
submitLabel: "Connect",
})