release: WRNexusJS 0.3.5

This commit is contained in:
2026-07-24 12:46:44 +05:30
parent 44ba847210
commit c81dedff17
2114 changed files with 65790 additions and 150559 deletions
+13 -29
View File
@@ -1,31 +1,15 @@
component Accordion {
props {
class = ""
title = "Question"
open = false
}
state expanded = open
view {
<div class="border-b border-slate-200 dark:border-slate-800 {class}" >
<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>
}
props {
size = "default"
color = "primary"
items = []
multiple = false
class = ""
}
view {
<div class="wire-next wire-next--color-{color} wire-next--size-{size} wire-next--accordion {class}">
{#each items as item}<details open="{item.open}"><summary>{item.label}</summary><div>{item.content}</div></details>{/each}
<slot />
</div>
}
}