Skip to main content
cngx-src documentation

InputAriaLabels

Interface

projects/forms/input/input-config.ts

Import#

import { InputAriaLabels } from '@cngx/forms/input'

Description#

Consumer-overridable ARIA label strings for @cngx/forms/input directives.

Library defaults are English (DEFAULT_INPUT_ARIA_LABELS); supply a partial override via withInputAriaLabels at the application or component level. Mirrors the select family's withAriaLabels idiom.

Index#

Instance Properties#

capsLockOn#string
Readonly

Assertive live-region warning announced when CngxCapsLock detects Caps Lock active. Default: 'Caps Lock is on'

clear#string
Readonly

aria-label for the CngxInputClear button. Default: 'Clear'

copyError#string
Readonly

Assertive live-region announcement when CngxCopyValue fails to copy. Default: 'Copy failed'

copySuccess#string
Readonly

Live-region announcement when CngxCopyValue copies successfully. Default: 'Copied'

fileDropZone#string
Readonly

aria-label for the CngxFileDrop zone. Default: 'File drop zone'

inputRejected#string
Readonly

Assertive live-region announcement when CngxInputFilter rejects a disallowed character. Default: 'Character not allowed'

otpComplete#string
Readonly

Live-region announcement when the OTP is fully entered. Default: 'Code complete'

otpGroup#string
Readonly

Group name for the CngxOtpInput host (role="group"). Default: 'One-time code'

otpSlot#function
Readonly

Per-slot aria-label factory for CngxOtpSlot. Default: `Digit ${index + 1} of ${length}`

passwordStrength#function
Readonly

Polite live-region template announced by CngxPasswordStrength when the strength label changes. Default: `Password strength: ${label}`

phoneCountry#string
Readonly

aria-label for the CngxPhoneInput country picker. Default: 'Country'

ratingItem#function
Readonly

Per-star aria-label factory for each CngxRating radio. Default: (step, max) => `${step} of ${max}`

ratingValue#function
Readonly

Live-region announcement factory for CngxRating on a committed value. Default: (value, max) => `${value} of ${max}`

sensitiveHide#string
Readonly

Polite live-region announcement when CngxSensitiveValue hides the value. Default: 'Value hidden'

sensitiveReveal#string
Readonly

Polite live-region announcement when CngxSensitiveValue reveals the value. Default: 'Value revealed'