Description
@Jdforrester-WMF mentioned that it might make sense to add the character counter for text inputs directly to the TextInput.vue component, and I like the idea of preventing future wheels from being reinvented. This will use the existing maxChars prop to calculate the number of characters remaining.
Desired behavior/Acceptance criteria
- the number of remaining characters is displayed when necessary
- the user cannot continue typing in the input after maxChars has been reached
- rendering the counter is togglable (toggleable? able to be toggled?)
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Front-end_Task/Bug_Completion_Checklist