40 lines
2.8 KiB
HTML
40 lines
2.8 KiB
HTML
|
<div x-data="{
|
||
|
activeAccordion: '',
|
||
|
setActiveAccordion(id) {
|
||
|
this.activeAccordion = (this.activeAccordion == id) ? '' : id
|
||
|
}
|
||
|
}" class="relative w-full mx-auto overflow-hidden text-sm font-normal bg-white border border-gray-200 divide-y divide-gray-200 rounded-md">
|
||
|
<div x-data="{ id: $id('accordion') }" class="cursor-pointer group">
|
||
|
<button @click="setActiveAccordion(id)" class="flex items-center justify-between w-full p-4 text-left select-none group-hover:underline">
|
||
|
<span>What is Pines?</span>
|
||
|
<svg class="w-4 h-4 duration-200 ease-out" :class="{ 'rotate-180': activeAccordion==id }" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>
|
||
|
</button>
|
||
|
<div x-show="activeAccordion==id" x-collapse x-cloak>
|
||
|
<div class="p-4 pt-0 opacity-70">
|
||
|
Pines is a UI library built for AlpineJS and TailwindCSS.
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div x-data="{ id: $id('accordion') }" class="cursor-pointer group">
|
||
|
<button @click="setActiveAccordion(id)" class="flex items-center justify-between w-full p-4 text-left select-none group-hover:underline">
|
||
|
<span>How do I install Pines?</span>
|
||
|
<svg class="w-4 h-4 duration-200 ease-out" :class="{ 'rotate-180': activeAccordion==id }" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>
|
||
|
</button>
|
||
|
<div x-show="activeAccordion==id" x-collapse x-cloak>
|
||
|
<div class="p-4 pt-0 opacity-70">
|
||
|
Add AlpineJS and TailwindCSS to your page and then copy and paste any of these elements into your project.
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div x-data="{ id: $id('accordion') }" class="cursor-pointer group">
|
||
|
<button @click="setActiveAccordion(id)" class="flex items-center justify-between w-full p-4 text-left select-none group-hover:underline">
|
||
|
<span>Can I use Pines with other libraries or frameworks?</span>
|
||
|
<svg class="w-4 h-4 duration-200 ease-out" :class="{ 'rotate-180': activeAccordion==id }" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>
|
||
|
</button>
|
||
|
<div x-show="activeAccordion==id" x-collapse x-cloak>
|
||
|
<div class="p-4 pt-0 opacity-70">
|
||
|
Absolutely! Pines works with any other library or framework. Pines works especially well with the TALL stack.
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|