Skip to content

kit-select

<kit-select> wraps a native <select> and participates in forms through ElementInternals.

<kit-select name="status" required>
<option value="draft">Draft</option>
<option value="published">Published</option>
</kit-select>
AttributeTypeNotes
namestringForm field name.
valuestringCurrent selected value.
requiredbooleanMirrors native select validation.
disabledbooleanDisables the native select.
  • kit-field-changed — emitted with { name, value }.
  • change — re-emitted as a composed native-style event.

Use @atheory-ai/kitsune-ui/elements/kit-select for the standalone class or /components/kit-select for createKitSelectComponent. Both imports are registration-free; only /register registers the catalog. The factory borrows a compatible host session and preserves this renderer’s native controls/slots. See supplied participation for property bindings, fixed JSON interactions, working drafts and cleanup.

Input/select factories support optional scoped recovery mappings. Eligible retained strings restore silently through public value/ElementInternals APIs; select values require an existing option. Initial/live conflicts and unmatched values stay available for host review. See persisted field recovery.