Shawn
Shawn
NNuxt
Created by Shawn on 3/28/2025 in #❓・help
ContentSurround Question
I am using ContentSurround from Nuxt UI Pro to show the previous and next posts on a blog. However, if I have no previous post, the next button appears on the left side of the surround with a back arrow, instead of on the right side with a next arrow. Is there a way to define if a surround item is the next or previous? If I have a next and previous post, it works great. If I have a previous, but no next, it works great. It's if there is no previous post, then the next item displays as if it is the previous post. If you look at the bottom of this page: https://ui.nuxt.com/getting-started it has the desired behavior with the next item on the right side, with the next arrow. Thanks!
6 replies