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
| Prop | Type | Default | Description |
|---|---|---|---|
posts | BlogPost[] | required | Recent posts from getRecentPosts(limit) |
title | string | 'Recent Posts' | Section heading text |
limit | number | 5 | Maximum 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
