fix: Collapsible box trigger

This commit is contained in:
Aleksander Grygier 2026-01-08 12:48:15 +01:00
parent 223c6333e9
commit 06febe08b7
1 changed files with 9 additions and 5 deletions

View File

@ -43,12 +43,16 @@
}: Props = $props();
</script>
<Collapsible.Root bind:open class={className}>
<Collapsible.Root
{open}
onOpenChange={(value) => {
open = value;
onToggle?.();
}}
class={className}
>
<Card class="gap-0 border-muted bg-muted/30 py-0">
<Collapsible.Trigger
class="flex w-full cursor-pointer items-center justify-between p-3"
onclick={onToggle}
>
<Collapsible.Trigger class="flex w-full cursor-pointer items-center justify-between p-3">
<div class="flex items-center gap-2 text-muted-foreground">
{#if Icon}
<Icon class={iconClass} />