ui

Carousel

A carousel with motion and swipe built using Embla. Built with Tailwind CSS. Copy-paste ready.

Installation

Examples

Multiple Items

Shows multiple slides at once using fractional basis — each item takes half or a third of the track width, letting users see what's coming next.

Custom Spacing

Reduces the gap between slides by overriding the default padding, useful for tighter layouts where breathing room should be minimal.

Vertical Orientation

Switches the scroll axis to vertical via orientation="vertical" — suited for feeds, timelines, or any layout that naturally flows top-to-bottom.

Autoplay with Indicators

Auto-advances every 2.5 s using the Embla API directly via setInterval, with pill-shaped dot indicators below that expand to show the active slide and allow manual jump.

Testimonials

Single-slide carousel for customer quotes — each card shows a star rating, a pull quote, and an avatar with name and role; loops infinitely with arrow controls.

Product Showcase

Multi-item carousel showing product cards with an image area, name, price, badge, and an Add to Cart button — aligned to start so partial next-slide is always visible.

Onboarding Steps

Step-by-step wizard built on raw Embla with drag disabled — a progress bar and "Step N of M" label update as the user moves through each step using labeled Back / Next buttons.

Team Members

Peek-style multi-item carousel for team cards — each card shows an avatar, name, role, department badge, and links; the partial next card signals more to explore.

Main carousel controlled programmatically via setApi — clicking a thumbnail scrolls the main view to that image, and the thumbnail strip stays in sync as the user swipes.

Testimonials

A looping testimonial carousel with a quote icon, reviewer name, role, and avatar initials. Dot indicators sync to the current slide and act as navigation buttons.

Pricing Plans

A single-item carousel through Free, Pro, and Enterprise plans with arrow navigation. The Pro plan card is visually highlighted with a primary ring.

A carousel of labeled gradient slides with a slide counter and dot progress bar below, using the built-in CarouselPrevious / CarouselNext controls.

Changelog

A drag-free multi-card carousel scrolling through release notes — each card shows a version tag, date, and a bullet list of changes.

Feature Highlights

A slide-by-slide feature tour with an emoji icon, title, and description per slide. Dot indicators and Prev / Next buttons control navigation, with the last slide showing a "Done" checkmark.