OtpResendAccessibility

class OtpResendAccessibility(val label: String, val countdownDescription: (OtpCountdown) -> String)(source)

Required, localized accessibility text for an OTP resend button.

Constructors

Link copied to clipboard
constructor(label: String, countdownDescription: (OtpCountdown) -> String)

Properties

Link copied to clipboard

visible text (and therefore accessible name) while the countdown runs. It should begin with the label, for example "Resend code in 25 s", so the visible label stays contained in the accessible name (WCAG 2.5.3).

Link copied to clipboard

accessible name and visible text when resending is available.