---
type: doc
title: Form
description: Native Liquid form 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/form.liquid"
<form data-slot='form' action='{{ routes.search_url }}' method='get'>
  <div data-slot='field-group'>
    <div data-slot='field'>
      <label data-slot='field-label' for='query'>Search products</label>
      <input data-slot='input' id='query' name='q' type='search' required>
    </div>
    <button data-slot='button' type='submit'>Search</button>
  </div>
</form>
```

## Installation

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

`form`.

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

## Install what this page shows

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