MeaChat
Docs / Latest Posts

Latest Posts

The LatestPosts component fetches and displays the most recent blog posts from your content collection.

Usage

import LatestPosts from '~/components/sections/LatestPosts.astro';

<LatestPosts 
  title="From the Blog" 
  count={3} 
/>

Example

Props

PropTypeDefaultDescription
titlestringblock.titleThe section heading.
subtitlestringblock.subtitleThe subtext below the heading.
viewAllTextstringblog.viewAllText for the β€œView All” link.
countnumber3Number of posts to display.