This commit is contained in:
Timothy Jaeryang Baek
2026-07-14 03:10:12 -04:00
parent d364101761
commit d475cb9174
8 changed files with 97 additions and 120 deletions
+6 -4
View File
@@ -45,6 +45,8 @@
export let id = '';
export let title = null;
export let attributes = null;
export let chevronClassName = 'size-3';
export let chevronStrokeWidth = '2.75';
export let chevron = false;
export let grow = false;
@@ -119,9 +121,9 @@
{#if !disabled}
<div class="flex self-center translate-y-[1px]">
{#if open}
<ChevronUp strokeWidth="2.75" className="size-3" />
<ChevronUp strokeWidth={chevronStrokeWidth} className={chevronClassName} />
{:else}
<ChevronDown strokeWidth="2.75" className="size-3" />
<ChevronDown strokeWidth={chevronStrokeWidth} className={chevronClassName} />
{/if}
</div>
{/if}
@@ -144,9 +146,9 @@
{#if chevron}
<div class="flex self-start translate-y-1">
{#if open}
<ChevronUp strokeWidth="2.75" className="size-3" />
<ChevronUp strokeWidth={chevronStrokeWidth} className={chevronClassName} />
{:else}
<ChevronDown strokeWidth="2.75" className="size-3" />
<ChevronDown strokeWidth={chevronStrokeWidth} className={chevronClassName} />
{/if}
</div>
{/if}