---
type: doc
title: Video
description: Native Liquid video 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/video.liquid"
<div data-slot='aspect-ratio' data-variant='framed' style='--ratio: 16 / 9'>
  <video data-slot='video' controls preload='none' aria-label='Your video'>
    {% if video_url != blank %}
      <source src='{{ video_url | escape }}' type='video/mp4'>
    {% endif %}
  </video>
</div>
```

## Installation

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

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.

Supply `video_url` with the URL of an MP4 from Shopify Files. The preview shows the native player without media until a URL is supplied.

## Parts

`video`.

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

## Install what this page shows

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