For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/genui/openui/chat/agent/variables/FormControl.md.
Lynx
  • English
  • Variable: FormControl

    const FormControl: DefinedComponent<ZodObject<{ hint: ZodOptional<ZodString>; input: ZodUnion<readonly [$ZodType<SubComponentOf<{ name: string; placeholder?: string; rules?: { email?: ... | ... | ...; max?: ... | ...; maxLength?: ... | ...; min?: ... | ...; minLength?: ... | ...; numeric?: ... | ... | ...; pattern?: ... | ...; required?: ... | ... | ...; url?: ... | ... | ...; }; type?: "number" | "email" | "url" | "text" | "password"; value: StateField<string | undefined>; }>, unknown, $ZodTypeInternals<SubComponentOf<{ name: string; placeholder?: string; rules?: { email?: ...; max?: ...; maxLength?: ...; min?: ...; minLength?: ...; numeric?: ...; pattern?: ...; required?: ...; url?: ...; }; type?: "number" | "email" | "url" | "text" | "password"; value: StateField<... | ...>; }>, unknown>>, $ZodType<SubComponentOf<{ name: string; placeholder?: string; rows?: number; rules?: { email?: ... | ... | ...; max?: ... | ...; maxLength?: ... | ...; min?: ... | ...; minLength?: ... | ...; numeric?: ... | ... | ...; pattern?: ... | ...; required?: ... | ... | ...; url?: ... | ... | ...; }; value: StateField<string | undefined>; }>, unknown, $ZodTypeInternals<SubComponentOf<{ name: string; placeholder?: string; rows?: number; rules?: { email?: ...; max?: ...; maxLength?: ...; min?: ...; minLength?: ...; numeric?: ...; pattern?: ...; required?: ...; url?: ...; }; value: StateField<... | ...>; }>, unknown>>, $ZodType<SubComponentOf<{ defaultValue?: number[]; label?: string; max: number; min: number; name: string; rules?: { email?: ... | ... | ...; max?: ... | ...; maxLength?: ... | ...; min?: ... | ...; minLength?: ... | ...; numeric?: ... | ... | ...; pattern?: ... | ...; required?: ... | ... | ...; url?: ... | ... | ...; }; step?: number; value: StateField<...[] | undefined>; variant: "continuous" | "discrete"; }>, unknown, $ZodTypeInternals<SubComponentOf<{ defaultValue?: ...[]; label?: string; max: number; min: number; name: string; rules?: { email?: ...; max?: ...; maxLength?: ...; min?: ...; minLength?: ...; numeric?: ...; pattern?: ...; required?: ...; url?: ...; }; step?: number; value: StateField<... | ...>; variant: "continuous" | "discrete"; }>, unknown>>, $ZodType<SubComponentOf<{ items: SubComponentOf<{ defaultChecked?: ...; description: ...; label: ...; name: ...; }>[]; name: string; rules?: { email?: ... | ... | ...; max?: ... | ...; maxLength?: ... | ...; min?: ... | ...; minLength?: ... | ...; numeric?: ... | ... | ...; pattern?: ... | ...; required?: ... | ... | ...; url?: ... | ... | ...; }; value: StateField<Record<..., ...> | undefined>; }>, unknown, $ZodTypeInternals<SubComponentOf<{ items: SubComponentOf<...>[]; name: string; rules?: { email?: ...; max?: ...; maxLength?: ...; min?: ...; minLength?: ...; numeric?: ...; pattern?: ...; required?: ...; url?: ...; }; value: StateField<... | ...>; }>, unknown>>, $ZodType<SubComponentOf<{ defaultValue?: string; items: SubComponentOf<{ description: ...; label: ...; value: ...; }>[]; name: string; rules?: { email?: ... | ... | ...; max?: ... | ...; maxLength?: ... | ...; min?: ... | ...; minLength?: ... | ...; numeric?: ... | ... | ...; pattern?: ... | ...; required?: ... | ... | ...; url?: ... | ... | ...; }; value: StateField<string | undefined>; }>, unknown, $ZodTypeInternals<SubComponentOf<{ defaultValue?: string; items: SubComponentOf<...>[]; name: string; rules?: { email?: ...; max?: ...; maxLength?: ...; min?: ...; minLength?: ...; numeric?: ...; pattern?: ...; required?: ...; url?: ...; }; value: StateField<... | ...>; }>, unknown>>]>; label: ZodString; }, $strip>, () => null>

    Server-safe FormControl component contract.

    Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.