Skip to content

Vizel API / core/src / VizelFormFieldAttrs

Interface: VizelFormFieldAttrs

Defined in: packages/core/src/builders/types.ts:226

ARIA attributes for a single form field.

Properties

aria-describedby?

ts
optional aria-describedby?: string;

Defined in: packages/core/src/builders/types.ts:236

Id of an associated description element (often the error message).


aria-invalid?

ts
optional aria-invalid?: boolean;

Defined in: packages/core/src/builders/types.ts:234

Whether the field currently violates validation.


aria-label

ts
aria-label: string;

Defined in: packages/core/src/builders/types.ts:232

Localized label announced by assistive tech.


id

ts
id: string;

Defined in: packages/core/src/builders/types.ts:228

Stable id; matches the field's <label for>.


name

ts
name: string;

Defined in: packages/core/src/builders/types.ts:230

Field name used by <form> submission and aria.

Released under the MIT License.