# Portfolio Blog Writing And Preview: Horizontal Blog Carousel

A horizontal carousel of blog cards that scrolls sideways. Use it to preview recent posts in a tidy row without taking up much vertical space.

- Page: https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-blog-writing-and-previews/horizontal-blog-carousel
- Collection: [Portfolio](https://www.shadcn-ui-blocks.com/blocks/portfolio), Free tier
- Group: [Blog Writing And Previews](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-blog-writing-and-previews)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-blog-writing-and-previews/horizontal-blog-carousel.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/portfolio-portfolio-blog-writing-and-previews-horizontal-blog-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/portfolio-portfolio-blog-writing-and-previews-horizontal-blog-carousel.json"`.

## Depends on

- npm packages: class-variance-authority, embla-carousel-react, lucide-react, radix-ui
- shadcn/ui components: button, card, carousel
- Installs to: `@/components/blocks/portfolio/portfolio-blog-writing-and-previews/horizontal-blog-carousel`

## About this block

Horizontal Blog Carousel opens with a section heading and a short
descriptor line, then presents your posts in a single scrolling row of
cards. Each card carries a cover image in a fixed 4:3 ratio, a date and
category label, a two-line clamped title, a two-line excerpt, and a ghost
"Read more" button. Previous and Next arrow buttons sit below the right
edge of the carousel for keyboard and pointer navigation.

The heading copy, descriptor, and every post field are straightforward to
swap out. The number of posts is flexible: add or remove entries from the
array and the carousel adjusts. The category labels and dates are plain
strings, so you can rename or reformat them freely without touching layout.

## When to use

Reach for this block when you want to surface recent writing on a page
that already has other content and cannot spare the vertical room a full
grid would need. It fits well on the homepage of an AI assistant product
where the team publishes articles on prompting techniques, model updates,
and research notes, and wants visitors to discover that writing without
leaving the main page. Compared to the
[Grid Blog Cards](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-blog-writing-and-previews/grid-blog-cards)
layout, this block shows more posts at once on wide screens while staying
compact in height.

A natural flow around it on a Portfolio page:

**Before**

- [Hero Showcases](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-hero-showcases) to
  establish the product or person before surfacing the blog content
- [Featured Work Highlights](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-featured-work-highlights)
  to lead with project work, then transition into writing

**After**

- [Email Signup And Newsletter](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-email-signup-and-newsletter)
  so readers who enjoyed the previews can subscribe for more
- A [Contact Sections](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-contact-sections) block
  to give engaged visitors a clear next step

## What you can display

The block suits any collection of short-form writing where a cover image
and a two-line excerpt are enough to earn a click. A few directions to
consider:

- **Product research posts.** Slot in articles covering user interviews,
  usability findings, or feature rationale to show depth behind the
  product.
- **Tutorial previews.** Lead each card with a step-count or skill-level
  label in the category field so readers can self-select before clicking
  through.
- **Team member writing.** Swap the category field for an author name to
  turn the carousel into a byline-first reading list across contributors.

> Tip: keep cover images consistent in subject tone so the row reads as a
> cohesive set rather than a random mix when multiple cards are visible.

## More in Portfolio Blog Writing And Previews

- [Featured Article List](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-blog-writing-and-previews/featured-article-list)
- [Grid Blog Cards](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-blog-writing-and-previews/grid-blog-cards)
- [Masonry Layout Articles](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-blog-writing-and-previews/masonry-layout-articles)
- [Minimal List Dates](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-blog-writing-and-previews/minimal-list-dates)
