Render a literal field — z.literal("a") or { const: 5 }.
Literals are non-editable by nature (the value is fixed at the schema
level), so both read-only and editable modes display the literal value(s).
Multiple literals (z.literal(["a", "b"])) render comma-separated.
Render a literal field —
z.literal("a")or{ const: 5 }.Literals are non-editable by nature (the value is fixed at the schema level), so both read-only and editable modes display the literal value(s). Multiple literals (
z.literal(["a", "b"])) render comma-separated.