Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add real-time word count display function in the lower right corner of Textarea #971

Closed
mcpanl opened this issue Nov 15, 2023 · 2 comments
Closed
Labels
enhancement New feature or request

Comments

@mcpanl
Copy link

mcpanl commented Nov 15, 2023

Description

Add real-time word count display function in the lower right corner of Textarea

Additional context

No response

@mcpanl mcpanl added the enhancement New feature or request label Nov 15, 2023
@maxsteinwand
Copy link
Contributor

You could achieve this by doing something like this:

<div class="relative">
	<UTextarea v-model="msg" />
	<div class="absolute right-0">
		{{ 15 - msg.length }} Chars remaining
        </div>
</div>

textarea

Copy link
Member

I've added a slot in the Textarea so you could even add this in absolute inside the textarea directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants