How to Create Show More Button Using Alpine JS

Zainal Hasan |

This day I got a question from someone in a group discussion.

How to create a show more button for very long text? Just like a show more for a long description

Then, let me answer this by creating a simple tutorial here.

First, we'll create a simple paragraph with a very long text. Then we need to set the max length of the character. Then, it will look like this:

And just it, we're done.

Thank you for your interest. Don't forget to share this article if this was help you :)

Reference

Related post