Blog grid

CoreBlock

A blog index with a featured post, category filter, post cards, pagination and an in-place reader.

pnpm dlx shadcn@latest add https://wui.alann.works/r/blog-grid.json

API Reference

PropTypeDefault
titlestring"Journal"
descriptionstring—
postsBlogPost[]blogPosts
categoriesstring[]blogCategories
categorystring—
defaultCategorystring"All"
onCategoryChange(category: string) => void—
pagenumber—
defaultPagenumber1
onPageChange(page: number) => void—
pageSizenumber6
showFeaturedbooleantrue
getHref(post: BlogPost) => string—
onPostOpen(post: BlogPost) => void—
classNamestring—
Categories
blocks
Dependencies
lucide-reactmotion