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

    Function buildAriaAttrs

    • Build the ARIA attribute bundle for a Svelte 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 via the description argument.

      Returns a plain Record<string, string> so callers can spread the result into any HTML element type without per-element TypeScript widening. Svelte's {...attrs} spread accepts the record directly.

      Parameters

      Returns Record<string, string>