dropdown
This commit is contained in:
12
superpage/src/components/Course/BuyDropdown.astro
Normal file
12
superpage/src/components/Course/BuyDropdown.astro
Normal 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>
|
||||
Reference in New Issue
Block a user