Preblocks

Blog Blocks for Shadcn and React

Simple blog grid

Block details

A clean and minimal blog section featuring a responsive grid layout with article cards. Each card displays an image, publication date, title, and description with hover effects. Perfect for showcasing blog posts in a simple, elegant manner.

Dependency Source
Badge (shadcn) Registry

Blog card section

Block details

An advanced blog section with premium design featuring category badges, gradient overlays, and smooth hover animations. Includes a customizable header with badge, title, and description, plus an optional View All button. Built with Shadcn Card components for a polished, professional look.

Dependency Source
Badge (shadcn) Registry
Card (shadcn) Registry
Button (shadcn) Registry
Lucide React NPM

Frequently asked questions

How do I customize the blog posts data?
Both blog sections accept a `posts` prop where you can pass your own array of blog post objects. Each post should include fields like id, title, description, image, and date. The components use default sample data if no props are provided, making them easy to preview and test.
Are these blog sections responsive?
Yes, both blog sections are fully responsive. They use a CSS grid layout that automatically adapts from a single column on mobile devices to 2 columns on tablets and 3 columns on desktop screens. All images and text elements scale appropriately for different viewport sizes.
Can I customize the grid layout and number of columns?
Absolutely! The grid layout uses Tailwind CSS classes like "md:grid-cols-2 lg:grid-cols-3". You can easily modify these values to change the number of columns at different breakpoints. For example, change to "md:grid-cols-3 lg:grid-cols-4" for a 4-column desktop layout.
What image aspect ratio should I use for blog post images?
Both sections use a 16:9 aspect ratio (aspect-video) for blog post images. This creates a consistent, professional look across all cards. Images are set to "object-cover" to maintain the aspect ratio while filling the container, and "object-top" ensures the top portion of images is always visible.
Are the blog blocks free to use?
We offer both free and premium blog blocks. The free blocks are completely free to use in personal and commercial projects. Premium blocks require a one-time purchase for access to more advanced designs.
How do I use these blog blocks in my project?
Simply browse our collection, click on the "Copy Code" button for your chosen block, and paste it into your Shadcn React project. All components are built with Tailwind CSS & Shadcn React, so they'll work seamlessly with your existing setup.
Can I customize the blog blocks?
Absolutely! All our blog blocks are fully customizable. You can easily modify colors, spacing, typography, and layout by adjusting the Tailwind CSS classes in the component code.