Validated Field
A required text field with accessible error messaging. Submit it empty and the field is marked aria-invalid, an alert appears with the error, that text becomes the field's accessible description (via aria-describedby), and focus moves to the field. Enter a value and submit, and the error clears and success is announced — error handling that screen-reader and keyboard users can actually follow (WCAG 3.3.1).
Preview
Installation
npx shadcn@latest add https://ui.publictheta.com/r/validated-field.jsonConformance
This component conforms to the @publictheta/ui-spec validated-field specification. Run the suite against any implementation with pnpm conformance.