Products Blocks for Astro
Astro product collections with images, descriptions, and price displays.
Image grid
Show product images and short descriptions in a grid.
bunx --bun shadcn@latest add @gnostic/products-image-gridnpx shadcn@latest add @gnostic/products-image-gridpnpm dlx shadcn@latest add @gnostic/products-image-gridList
Use a compact list when the product details need less media.
bunx --bun shadcn@latest add @gnostic/products-listnpx shadcn@latest add @gnostic/products-listpnpm dlx shadcn@latest add @gnostic/products-listPrice cards
Make the price easy to compare across product cards.
bunx --bun shadcn@latest add @gnostic/products-price-cardsnpx shadcn@latest add @gnostic/products-price-cardspnpm dlx shadcn@latest add @gnostic/products-price-cardsAction row
Add a collection action beside the product row.
bunx --bun shadcn@latest add @gnostic/products-action-rownpx shadcn@latest add @gnostic/products-action-rowpnpm dlx shadcn@latest add @gnostic/products-action-rowHover grid
Use image-led cards with the block hover treatment.
bunx --bun shadcn@latest add @gnostic/products-hover-gridnpx shadcn@latest add @gnostic/products-hover-gridpnpm dlx shadcn@latest add @gnostic/products-hover-gridChoose a products layout
Choose a products grid when readers need to scan several items before opening a detail view. Keep each item’s information consistent so comparison is possible.
Pass content from Astro
Pass the products array accepted by the chosen block. Format price and unit data consistently. Filtering, stock checks, and pagination are separate application concerns.
Responsive layout and images
Check grid wrapping with long product titles and varied images. Use thumbnail sources and a consistent crop policy. Where the variant exposes links, make each destination name clear without relying only on its image.
Compose the next section
Use Product for item detail and Pagination for collections split across routes.
