X Enterprises
nuxt-x-blog

RecentPosts

Sidebar widget showing the most recent blog posts.

RecentPosts

The XBLRecentPosts component renders a compact list of recent posts for use in sidebars or aside panels on post pages. Pass the result of useBlog().getRecentPosts().

Components

<XBLRecentPosts />

<XBLRecentPosts :posts="recentPosts" title="Recent Posts" />

Props

PropTypeDefaultDescription
postsBlogPost[]requiredRecent posts from getRecentPosts(limit)
titlestring'Recent Posts'Section heading text
limitnumber5Maximum posts to display (trims the array if longer)

AI Context

component: XBLRecentPosts
package: "@xenterprises/nuxt-x-blog"
use-when: Sidebar or aside panel listing the most recent blog posts
Copyright © 2026