Cookbook / ARIA Form

ARIA Form

form

Form-associated element — aria() maps role/label/describedby, form() exposes value and validity to the surrounding form.

id
aria-form
since
0.5.0
file
aria-form.aihu
ariastateformactionbind:valueon:submit

Run it

source · static

This recipe doesn't have a hydrated island in the demo gallery yet. An in-browser, WASM-compiled playground (edit this source and re-render live) is planned as a follow-up — read the real source below.

Source

aria-form.aihu

Requires

concerns
a11ystate

Anti-patterns

  • Do not mirror validity into ad-hoc CSS classes only — form() participates in real form submission and native :invalid styling.

Related recipes