ProjectCards block renders a grid of project cards from the Sanity project document type. Projects are fetched once per build by getAllProjects() and filtered by resolveBlockProjects() before the block receives them.
Props
Optional section heading rendered as
<h2>.Controls which projects are shown. Defaults to
all.| Value | Behavior |
|---|---|
all | All projects (ordered by title) |
featured | Only projects where featured == true |
manual | Editor-selected list via multi-reference picker |
Pre-resolved array of project objects injected by
BlockRenderer via resolveBlockProjects(). Each project includes _id, title, slug, content, sponsor, technologyTags, semester, status, outcome, and featured.Usage in Sanity Studio
- Add a Project Cards block to a page.
- Set an optional Heading.
- Choose a Display Mode:
all,featured, ormanual. - If
manual, use the multi-reference picker to select specific projects.