improve accordtion
This commit is contained in:
@@ -4,12 +4,12 @@ import { Icon } from "astro-icon/components";
|
||||
|
||||
<div
|
||||
class="cursor-pointer flex items-center justify-between px-5 gap-3 py-3"
|
||||
x-on:click="open = !open"
|
||||
x-on:click="open = ! open"
|
||||
>
|
||||
<slot />
|
||||
<Icon
|
||||
name="chevron-down"
|
||||
class="size-4 fill-white/60 group-data-[hover]:fill-white/50 shrink-0"
|
||||
class="size-4 fill-white/60 group-data-[hover]:fill-white/50 shrink-0 transition duration-300"
|
||||
:class="{'-rotate-180': open === true}"
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user