Interface CharacterCountTranslations

Messages shown to users as they type. It provides feedback on how many words or characters they have remaining or if they are over the limit. This also includes a message used as an accessible description for the textarea.

Properties

charactersAtLimit: string

Message displayed when the number of characters reaches the configured maximum, maxlength. This message is displayed visually and through assistive technologies.

charactersOverLimit: TranslationPluralForms

Message displayed when the number of characters is over the configured maximum, maxlength. This message is displayed visually and through assistive technologies. The component will replace the %{count} placeholder with the number of remaining characters. This is a pluralised list of messages.

charactersUnderLimit: TranslationPluralForms

Message displayed when the number of characters is under the configured maximum, maxlength. This message is displayed visually and through assistive technologies. The component will replace the %{count} placeholder with the number of remaining characters. This is a pluralised list of messages.

textareaDescription: TranslationPluralForms

Message made available to assistive technologies, if none is already present in the HTML, to describe that the component accepts only a limited amount of content. It is visible on the page when JavaScript is unavailable. The component will replace the %{count} placeholder with the value of the maxlength or maxwords parameter.

wordsAtLimit: string

Message displayed when the number of words reaches the configured maximum, maxlength. This message is displayed visually and through assistive technologies.

wordsOverLimit: TranslationPluralForms

Message displayed when the number of words is over the configured maximum, maxlength. This message is displayed visually and through assistive technologies. The component will replace the %{count} placeholder with the number of remaining words. This is a pluralised list of messages.

wordsUnderLimit: TranslationPluralForms

Message displayed when the number of words is under the configured maximum, maxlength. This message is displayed visually and through assistive technologies. The component will replace the %{count} placeholder with the number of remaining words. This is a pluralised list of messages.