Velocity X Components

Content & Dashboard

Blog Index Grid with Category Filter

Client-filtered blog index grid driven by a category pill row built from the posts data.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add blog-index-grid

Built for react. Needs react already installed as a peer dependency. An Astro-only project needs @astrojs/react wired up first — this won't run on its own in plain Astro.

Full docs for Blog Index Grid with Category Filter →

Needs a licence key — subscribe here, then velocityx loginonce.

react v1.0.0 react

Props

NameTypeRequiredDefaultDescription
posts{ id, href, title, excerpt, category, coverSrc, date, readTimeMins }[]NoDEFAULT_POSTS
localestring,No'en-AU'
dateFormatter(date) => stringYesoverrides Intl.DateTimeFormat
headingLevel1-6,No3heading level used for each post title
classNamestringNo''

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/blog-index-grid/BlogIndexGrid.jsx

Using the Blog Index Grid with Category Filter component

Install it with velocityx add blog-index-grid. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Content & Dashboard.