---
type: doc
title: Carousel
description: Native Liquid carousel with readable CSS and shared data-slot parts.
---

> Native Liquid and CSS. Install from `https://ui.full.dev/r/liquid/{name}.json`; see [layout setup](/liquid/docs/installation.md). No Tailwind or consuming build.

```liquid title="liquid/examples/carousel.liquid"
<section data-slot='carousel' aria-label='Example gallery'>
  <div data-slot='carousel-content'>
    <div data-slot='carousel-item'>
      <div data-slot='card'><div data-slot='card-content'>First slide</div></div>
    </div>
    <div data-slot='carousel-item'>
      <div data-slot='card'><div data-slot='card-content'>Second slide</div></div>
    </div>
  </div>
  <button data-slot='carousel-previous' data-button data-variant='outline' type='button' hidden>Previous</button
  ><button data-slot='carousel-next' data-button data-variant='outline' type='button' hidden>Next</button>
</section>
```

## Installation

```bash
npx shadcn@latest add https://ui.full.dev/r/liquid/carousel.json https://ui.full.dev/r/liquid/card.json
```

Follow the [one-time layout setup](/liquid/docs/installation/). A full `components` install already includes this item.

## Usage

After this install, render these once in the layout head before theme overrides and other modules. The full `ui` hook already includes them. The command also installs the parts used in this example.

```liquid
{% render 'ui-init' %}
{% render 'ui-button' %}
{% render 'ui-runtime' %}
{% render 'ui-carousel' %}
{% render 'ui-aspect-ratio' %}
{% render 'ui-card' %}
```

The preview and its Usage tab render the same native Liquid source. Use `data-slot` for parts, `data-variant` for variants and `data-size` for sizes. Keep your store's labels, translations and Shopify data in your theme.

## Parts

`carousel`, `carousel-content`, `carousel-item`.

[Component source](https://github.com/fulldotdev/ui/tree/main/liquid/components/carousel.liquid) · [Theming](/liquid/docs/theming/)

## Install what this page shows

```bash
npx shadcn@latest add https://ui.full.dev/r/liquid/carousel.json https://ui.full.dev/r/liquid/card.json
```
