schema-components - v3.7.0
    Preparing search index...

    Function renderLiteral

    • 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.

      Parameters

      Returns VNode