This commit is contained in:
2025-05-03 23:11:36 -03:00
parent eae3f40df7
commit b84c46721a
8 changed files with 266 additions and 19 deletions

View File

@@ -0,0 +1,12 @@
<details class:list={["group relative group", Astro.props.class]}>
<summary
class="flex bg-black hover:bg-white hover:text-black group-open:text-black group-open:bg-white font-semibold py-2.5 px-3 rounded-md cursor-pointer transition"
>
<slot name="label" />
</summary>
<div
class="absolute right-0 top-full translate-y-1 bg-stone-900 p-2.5 border border-white/15 min-w-56 rounded-lg shadow drop-shadow"
>
<slot />
</div>
</details>