Writing a pagination component in Vue 3 - with and without slots

by Therese Wiig

Writing pagination from scratch can be tricky at times. I was recently tasked with writing a pagination component to organize a variety of items on our website. In the process, I found that using slots can be helpful in organizing multiple lists across a website, depending on what you’re…