Technical Notes
Technical Challenges
Slot the real input (best, native submit)
<!-- In the component's shadow: -->
<slot name="ctrl"></slot>
<!-- In your form (light DOM): -->
<form>
<code-island> <!-- your component host -->
<input type="checkbox" slot="ctrl" name="agree" value="1">
</code-island>
<button type="submit">Send</button>
</form>Mirror to a hidden input (when the component must render its own UI)
Intercept submit and append programmatically (no hidden input)
Form-Associated Custom Elements (FACE)
Last updated