release: WRNexusJS 0.2.49

This commit is contained in:
2026-07-18 19:33:57 +05:30
parent aa6badbd31
commit 9ca1cc6b0f
61 changed files with 252 additions and 93 deletions
+30 -1
View File
@@ -1 +1,30 @@
component Accordion { props { title = "Question" open = false } state expanded = open view { <div class="border-b border-slate-200 dark:border-slate-800"><button type="button" class="flex w-full items-center justify-between gap-4 py-5 text-left font-semibold" aria-expanded="{expanded}" @click="expanded = !expanded"><span>{title}</span><span class="text-xl transition-transform {expanded ? 'rotate-45' : ''}">+</span></button><div data-show="expanded" class="pb-5 text-slate-600 dark:text-slate-300"><slot /></div></div> } }
component Accordion {
props {
title = "Question"
open = false
}
state expanded = open
view {
<div class="border-b border-slate-200 dark:border-slate-800" >
<button
type="button"
class="flex w-full items-center justify-between gap-4 py-5 text-left font-semibold"
aria-expanded="{expanded}"
@click="expanded = !expanded"
>
<span >
{title}
</span>
<span class="text-xl transition-transform {expanded ? 'rotate-45' : ''}">+</span>
</button>
<div
data-show="expanded"
class="pb-5 text-slate-600 dark:text-slate-300"
>
<slot />
</div>
</div>
}
}