Components

← All components

KeyValueEditor

src/lib/components/key-value-editor.tsx·rows[] (key · value · error) · labels · placeholders · add / remove (no Figma source)

Guide

tentative
  • Editable key/value rows with Add and Remove — e.g. custom engine flags.
  • Keep typed values when a row has an error; the error marks both fields.
  • Pass keyOptions when the supported keys are known: the key cell suggests them, and a row with a known key shows its value format (PRD 01: suggest supported keys and their value format).
  • Disable it with a disabled.reason that says what enables it (“Choose an engine to add flags.”); rows already entered stay visible.
  • Don't clear rows to show the editor is unavailable — disable it and keep them.
  • Don't block a typed key just because it isn't in keyOptions; the server checks it.
  • No Figma source — built from TextInput and Combobox.
  • What is known about each engine flag (type, allowed values, description) waits on Bam (plan, Bam 3).

Related: KeyValueGrid, ComboboxSources: src/lib/components/key-value-editor.tsx · docs/product/prd-01-inference-custom-configuration.md · docs/product/configuration-redesign-plan.md

empty

KeyValue

rows

KeyValue

row error

KeyValue

Number from 0 to 1, e.g. 0.90

One of auto, fp8, fp8_e5m2 · KV cache precision

keyOptions (format hint per row)

KeyValue

Number from 0 to 1, e.g. 0.90

keyOptions + openKeyRow (suggestions)

KeyValue
Choose an engine to add flags.

disabled (reason)