schema-components - v3.7.0
    Preparing search index...

    Function buildAriaAttrs

    • Build the ARIA attribute bundle for a renderer.

      • aria-required="true" whenever the field is non-optional.
      • aria-describedby=<hint-id> whenever a constraint hint applies.
      • aria-label=<description> when a non-empty description is supplied.

      Pass inputId + constraints only when the renderer emits a constraint-hint sibling; the helper then auto-derives the aria-describedby value from hintIdFor(inputId). Omitting either argument skips the attribute.

      Parameters

      Returns Record<string, string>