Zod schema, JSON Schema object, or OpenAPI document.
OptionalschemaFor OpenAPI: a ref string like "#/components/schemas/User".
OptionalioWhich side of every transform / pipe / codec to render.
OptionalvalueCurrent value to render — typed against the schema's inferred shape.
OptionalonCalled when the value changes; receives the next value.
OptionalvalidateRun safeParse / safeEncode on change and route errors.
OptionalonCalled with the validation error when validation fails.
OptionalonCalled when schema normalisation or rendering fails.
OptionalonCalled with each diagnostic emitted during schema processing.
OptionalstrictWhen true, any diagnostic becomes a thrown error.
OptionalfieldsPer-field meta overrides — nested object mirroring schema shape.
OptionalmetaMeta overrides applied to the root schema.
OptionalreadConvenience: sets readOnly on all fields.
OptionalwriteConvenience: sets writeOnly on all fields.
OptionaldescriptionConvenience: sets description on the root.
OptionalwidgetsInstance-scoped widgets — override context and global widgets.
OptionalidPrefix used for every input id / label for in this component
subtree. Defaults to a per-instance value from createUniqueId()
so multiple <SchemaComponent> instances on the same page never
collide. Override for deterministic ids in screenshot tests.
Props accepted by SchemaComponent.
Mirrors
react/SchemaComponent'sSchemaComponentPropsshape — the generic parameters carry the inferred schema shape through tovalue,onChange, andfieldsso a typedschemaprop drives typed props on the rest of the component.