Function: createAriaLabel()
function createAriaLabel(label: string, required: boolean): string;
Defined in: src/components/AddSiteForm/form-utils.ts:53
Creates an accessible aria-label string, appending a required indicator if needed.
Parametersโ
labelโ
string
The base label text for the field.
requiredโ
boolean
Whether the field is required.
Returnsโ
string
The formatted aria-label string.
Exampleโ
createAriaLabel("Site Name", true); // "Site Name (required)"