Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/hokulea/pahu. Agnostic headless form with adapters for frameworks
Something went wrong. Try again.
499 B · 23 lines
123456789101112131415161718192021222324import type { TOC } from '@ember/component/template-only';import type { Issue } from '@hokulea/ember-pahu';
export interface ErrorsSignature { Args: { errors: Issue[]; id: string; };}
const Errors: TOC<ErrorsSignature> = <template> <div id={{@id}} aria-live="assertive"> <div> {{#each @errors as |e|}} {{#if e.message}} <p style="color: darkred">{{e.message}}</p> {{/if}} {{/each}} </div> </div></template>;
export default Errors;