KeyValueEditor
src/lib/components/key-value-editor.tsx·rows[] (key · value · error) · labels · placeholders · add / remove (no Figma source)
Guide
tentativeWhen to use
- Editable key/value rows with Add and Remove — e.g. custom engine flags.
Do
- Keep typed values when a row has an error; the error marks both fields.
- Pass
keyOptionswhen 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.reasonthat says what enables it (“Choose an engine to add flags.”); rows already entered stay visible.
Don't
- 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.
Open
- 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
--port is managed by Neural Nova and can’t be set here.
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
disabled (reason)