Without validation
With warning border when nearing the limit
With warning border past the limit
With default validation
With dynamic validation on blur
With the counter sized like the error
With the counter sized like the error, showing the error
Hides max character counter when blurred out of field
Sizes the max character counter like the validation error text, so the two read as one status line when they swap
First validation happens only on blur/submit, and validates on keyup once an error exists
Shows a warning border. The caller decides when to set this, e.g. when the content is nearing `maxCharacter`; the textarea does not detect that itself. The warning colour replaces the focus ring while focused. A validation error border takes precedence. While this is set: - the error border stays red when focused, instead of switching to the focus colour - going over `maxCharacter` shows the error border straight away, matching the red counter, without waiting for blur/submit - while focused and over `maxCharacter`, the "characters over limit" counter shows in place of the error message, which returns on blur
Event emitted everytime a user highlights a text in the textarea