---
type: doc
title: Tooltip
description: Native Liquid tooltip 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/tooltip.liquid"
<div data-slot='tooltip'>
  <a
    href='{{ routes.cart_url }}'
    data-slot='tooltip-trigger'
    data-button
    data-variant='outline'
    data-size='icon'
    aria-label='Cart'
  >
    <svg
      class='icon'
      data-slot='icon'
      viewBox='0 0 24 24'
      fill='none'
      stroke='currentColor'
      stroke-width='2'
      stroke-linecap='round'
      stroke-linejoin='round'
      aria-hidden='true'
      focusable='false'
    >
      <path d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/><path d='M3 6h18'/><path d='M16 10a4 4 0 0 1-8 0'/>
    </svg>
  </a>
  <div data-slot='tooltip-portal'>
    <div data-slot='tooltip-positioner'>
      <div data-slot='tooltip-content' hidden>
        Cart
        <div data-slot='tooltip-arrow'></div>
      </div>
    </div>
  </div>
</div>
```

## Installation

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

`tooltip-arrow`, `tooltip-content`.

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

## Install what this page shows

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