# Marketing Blog Section: Carousel

A horizontal slider of article cards with cover images and titles. Use it to feature recent or popular posts in a compact strip readers can swipe.

- Page: https://www.shadcn-ui-blocks.com/blocks/marketing/blog-sections/carousel
- Collection: [Marketing](https://www.shadcn-ui-blocks.com/blocks/marketing), Free tier
- Group: [Blog Sections](https://www.shadcn-ui-blocks.com/blocks/marketing/blog-sections)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/marketing/blog-sections/carousel.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/marketing-blog-sections-carousel
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/marketing-blog-sections-carousel.json"`.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: badge, button, card
- Installs to: `@/components/blocks/marketing/blog-sections/carousel`

## About this block

Carousel is a horizontally scrolling article strip. A heading and
subheading sit on the left of a header row, with previous and next
arrow buttons on the right. Below that, cards scroll in a hidden
overflow rail: each card shows a cover image with a category badge
pinned to its top-left corner, then a date row with a calendar icon,
a two-line clamped title, a short excerpt, and a "Read Article" ghost
button at the foot. On mobile the arrows are replaced by Prev and
Next full-width buttons below the rail, and a row of dot indicators
lets readers jump directly to any position.

The number of visible cards adjusts automatically: one on small
screens, two on tablet, three on desktop. The header copy, the
article data, and the count of posts are all independent, so you can
swap in any articles, trim the set to four or five items, or remove
the "Browse All Articles" button at the bottom without affecting the
scroll logic.

## When to use

Reach for this block when you want to surface a curated slice of
content without committing a full section of vertical space to it. It
works well on a product analytics SaaS blog home where the reading
experience is secondary to the product itself, or on any marketing
page where a static grid would feel too heavy. Unlike a simple grid,
the carousel keeps the page compact and gives readers a clear path to
discover more without scrolling past a wall of cards.

A natural flow around it on a Marketing (Legacy) page:

**Before**

- A [hero section](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections) to anchor the
  page and give readers context before the article strip
- The [Hero Focus](https://www.shadcn-ui-blocks.com/blocks/marketing/blog-sections/hero-focus) block
  to spotlight one flagship post above the broader feed

**After**

- The [Newsletter Blog](https://www.shadcn-ui-blocks.com/blocks/marketing/blog-sections/newsletter-blog)
  block to convert engaged readers into subscribers
- A [CTA section](https://www.shadcn-ui-blocks.com/blocks/marketing/cta-sections) to move readers
  toward a trial or demo after they have browsed the content

## What you can display

The natural fit is your most recent posts, one per card, newest
first. A few other ways to use the strip:

- **Product changelog teasers.** Feature your last few release posts
  so visitors can see that the product ships regularly without leaving
  the marketing page.
- **Category spotlights.** Populate the strip with posts from one
  tag, then use the heading to name the topic and link to the full
  filtered feed.
- **Case study previews.** Swap articles for short customer stories
  and let the excerpt carry the key result so readers know whether to
  click through.

> Tip: six cards is the sweet spot. Fewer than four leaves the rail
> feeling thin on desktop; more than eight makes the dot indicators
> crowded on mobile.

## More in Marketing Blog Sections

- [Author Spotlight](https://www.shadcn-ui-blocks.com/blocks/marketing/blog-sections/author-spotlight)
- [Case Study Showcase](https://www.shadcn-ui-blocks.com/blocks/marketing/blog-sections/case-study-showcase)
- [Category Filter](https://www.shadcn-ui-blocks.com/blocks/marketing/blog-sections/category-filter)
- [Compact List](https://www.shadcn-ui-blocks.com/blocks/marketing/blog-sections/compact-list)
- [Expert Roundup](https://www.shadcn-ui-blocks.com/blocks/marketing/blog-sections/expert-roundup)
- [Featured List](https://www.shadcn-ui-blocks.com/blocks/marketing/blog-sections/featured-list)
- [Featured With Sidebar](https://www.shadcn-ui-blocks.com/blocks/marketing/blog-sections/featured-with-sidebar)
- [Hero Focus](https://www.shadcn-ui-blocks.com/blocks/marketing/blog-sections/hero-focus)
- [Interview Format](https://www.shadcn-ui-blocks.com/blocks/marketing/blog-sections/interview-format)
- [Magazine Layout](https://www.shadcn-ui-blocks.com/blocks/marketing/blog-sections/magazine-layout)
- [Minimal Blog](https://www.shadcn-ui-blocks.com/blocks/marketing/blog-sections/minimal-blog)
- [Newsletter Blog](https://www.shadcn-ui-blocks.com/blocks/marketing/blog-sections/newsletter-blog)
- [Podcast List](https://www.shadcn-ui-blocks.com/blocks/marketing/blog-sections/podcast-list)
- [Simple Grid](https://www.shadcn-ui-blocks.com/blocks/marketing/blog-sections/simple-grid)
- [Timeline Blog](https://www.shadcn-ui-blocks.com/blocks/marketing/blog-sections/timeline-blog)
- [Video Blog](https://www.shadcn-ui-blocks.com/blocks/marketing/blog-sections/video-blog)
