---
type: doc
title: Pagination
description: Native Liquid pagination 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/pagination.liquid"
<nav data-slot='pagination' aria-label='Pagination'>
  <ul data-slot='pagination-content'>
    <li>
      <a data-slot='pagination-link' data-button data-variant='ghost' href='?page=1' aria-current='page' data-active
        >1</a
      >
    </li>
    <li><a data-slot='pagination-link' data-button data-variant='ghost' href='?page=2'>2</a></li>
    <li><a data-slot='pagination-link' data-button data-variant='ghost' href='?page=2'>Next</a></li>
  </ul>
</nav>
```

## Installation

```bash
npx shadcn@latest add https://ui.full.dev/r/liquid/pagination.json https://ui.full.dev/r/liquid/button.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-pagination' %}
{% render 'ui-button' %}
```

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

`pagination`, `pagination-content`, `pagination-ellipsis`, `pagination-link`.

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

## Install what this page shows

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