# `PhoenixBlog.Web.Components.RecentPosts`
[🔗](https://github.com/lalabuy948/phoenix_blog/blob/v0.1.7/lib/phoenix_blog/web/components/recent_posts.ex#L1)

A LiveComponent that displays the latest blog posts.

Embed it in any LiveView page to show recent posts:

    <.live_component
      module={PhoenixBlog.Web.Components.RecentPosts}
      id="recent-posts"
      blog_path="/blog"
    />

## Attributes

  * `blog_path` (required) - The path where your blog is mounted
  * `count` - Number of posts to show (default: 3)
  * `title` - Section title (default: "Latest Posts")
  * `class` - Additional CSS classes for the wrapper

---

*Consult [api-reference.md](api-reference.md) for complete listing*
