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>Attributes
Section titled “Attributes”| Attribute | Type | Notes |
|---|---|---|
name | string | Form field name. |
value | string | Current selected value. |
required | boolean | Mirrors native select validation. |
disabled | boolean | Disables the native select. |
Events
Section titled “Events”kit-field-changed— emitted with{ name, value }.change— re-emitted as a composed native-style event.
Runtime participation
Section titled “Runtime participation”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.