---
type: doc
title: Tabs
description: Native Liquid tabs 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/tabs.liquid"
<div data-slot='tabs' data-default-value='description'>
  <div data-slot='tabs-list' role='tablist' aria-label='Product details'>
    <button type='button' data-slot='tabs-trigger' data-value='description'>Description</button>

    <button type='button' data-slot='tabs-trigger' data-value='details'>Details</button>

    <button type='button' data-slot='tabs-trigger' data-value='care'>Care</button>
  </div>

  <div data-slot='tabs-content' data-value='description'>
    <p data-slot='typography-muted'>Add the product description.</p>
  </div>

  <div data-slot='tabs-content' data-value='details'>
    <p data-slot='typography-muted'>Add materials, dimensions or other details.</p>
  </div>

  <div data-slot='tabs-content' data-value='care'>
    <p data-slot='typography-muted'>Add care instructions.</p>
  </div>
</div>
```

## Installation

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

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

`tabs`, `tabs-content`, `tabs-list`, `tabs-trigger`.

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

## Variants

`line`.

## Install what this page shows

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