UI

Native Liquid toggle with readable CSS and shared data-slot parts.

Installation

npx shadcn@latest add https://ui.full.dev/r/liquid/toggle.json https://ui.full.dev/r/liquid/icon.json

Follow the one-time layout setup. 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.

{% render 'ui-init' %}
{% render 'ui-triggers' %}
{% render 'ui-runtime' %}
{% render 'ui-toggle' %}
{% render 'ui-icon' %}

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

toggle.

Component source · Theming

Variants

outline.

Sizes

lg, sm.