Mountain landscape
Desert landscape
Forest landscape
Carousel Examples

AppCarousel Component

A responsive carousel component based on Nuxt UI Carousel with support for images, titles, descriptions, and action buttons.

Basic Carousel

Simple image carousel without overlay content

Mountain landscape
Desert landscape
Forest landscape
View Code
const items = [
  {
    image: 'https://images.unsplash.com/.../photo.jpg',
    imageAlt: 'Mountain landscape'
  },
  // ... more items
]

<AppCarousel :items="items" />

Carousel with Content

Carousel with titles and descriptions

Mountain peak

Explore the Mountains

Discover breathtaking views and unforgettable adventures in the great outdoors.

Beach scene

Beach Paradise

Relax on pristine beaches with crystal-clear waters and golden sand.

Forest path

Forest Retreat

Immerse yourself in nature and find peace among the trees.

View Code
const items = [
  {
    image: 'https://images.unsplash.com/.../photo.jpg',
    title: 'Explore the Mountains',
    description: 'Discover breathtaking views...',
    imageAlt: 'Mountain peak'
  },
  // ... more items
]

<AppCarousel :items="items" />

Carousel with Actions

Carousel with action buttons (supports all UButton props)

Product showcase

New Collection

Check out our latest products and exclusive offers.

Sale banner

Limited Time Offer

Save up to 50% on selected items. Hurry, offer ends soon!

Community

Join Our Community

Connect with thousands of users and get exclusive updates.

View Code
const items = [
  {
    image: 'https://images.unsplash.com/.../photo.jpg',
    title: 'New Collection',
    description: 'Check out our latest products...',
    actions: [
      {
        label: 'Shop Now',
        color: 'primary',
        size: 'lg',
        to: '#'
      },
      {
        label: 'Learn More',
        color: 'neutral',
        variant: 'outline',
        size: 'lg',
        to: '#'
      }
    ]
  },
  // ... more items
]

<AppCarousel :items="items" />

Autoplay Carousel

Automatically transitions every 3 seconds

Slide 1

Slide 1

This carousel autoplays every 3 seconds

Slide 2

Slide 2

Hover to pause the autoplay

Slide 3

Slide 3

Click arrows to navigate manually

View Code
<AppCarousel
  :items="items"
  :autoplay="true"
  :interval="3000"
/>

Custom Options

Carousel without arrows and indicators

Mountain peak

Explore the Mountains

Discover breathtaking views and unforgettable adventures in the great outdoors.

Beach scene

Beach Paradise

Relax on pristine beaches with crystal-clear waters and golden sand.

Forest path

Forest Retreat

Immerse yourself in nature and find peace among the trees.

View Code
<AppCarousel
  :items="items"
  :arrows="false"
  :indicators="false"
/>

API Reference

Props

PropTypeDefaultDescription
itemsCarouselItem[]requiredArray of carousel items
orientationstring'horizontal'Carousel orientation
arrowsbooleantrueShow navigation arrows
indicatorsbooleantrueShow slide indicators
autoplaybooleanfalseEnable autoplay
intervalnumber5000Autoplay interval (ms)
classstring-Additional CSS classes
uiobject-UI customization object

CarouselItem Interface

PropertyTypeRequiredDescription
imagestringYesImage URL
titlestringNoSlide title
descriptionstringNoSlide description
actionsButtonProps[]NoArray of action buttons
imageAltstringNoImage alt text for accessibility

Features

  • Fully responsive design (mobile-first)
  • Support for all Nuxt UI Carousel props
  • Customizable action buttons (supports all UButton props)
  • Optional title and description with gradient overlay
  • Autoplay functionality with configurable interval
  • Keyboard navigation support (inherited from Nuxt UI)
  • Touch/swipe gestures on mobile
  • Accessibility features (alt text, ARIA labels)