<div data-slot='accordion' data-multiple='false'>
<div data-slot='accordion-item' data-value='details'>
<h3 data-slot='accordion-header'><button type='button' data-slot='accordion-trigger'>Product details</button></h3>
<div data-slot='accordion-content'><p>Place your product details here.</p></div>
</div>
<div data-slot='accordion-item' data-value='care'>
<h3 data-slot='accordion-header'><button type='button' data-slot='accordion-trigger'>Care instructions</button></h3>
<div data-slot='accordion-content'><p>Add care instructions for your product.</p></div>
</div>
</div>Installation
npx shadcn@latest add https://ui.full.dev/r/liquid/accordion.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-runtime' %}
{% render 'ui-accordion' %}
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
accordion, accordion-content, accordion-content-inner, accordion-item, accordion-trigger.