mirror of
https://github.com/khoaliber/dockhand.git
synced 2026-03-06 05:39:05 +00:00
23 lines
595 B
Svelte
23 lines
595 B
Svelte
<script lang="ts">
|
|
import { Accordion as AccordionPrimitive } from "bits-ui";
|
|
import { cn, type WithoutChild } from "$lib/utils.js";
|
|
|
|
let {
|
|
ref = $bindable(null),
|
|
class: className,
|
|
children,
|
|
...restProps
|
|
}: WithoutChild<AccordionPrimitive.ContentProps> = $props();
|
|
</script>
|
|
|
|
<AccordionPrimitive.Content
|
|
bind:ref
|
|
data-slot="accordion-content"
|
|
class="data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm"
|
|
{...restProps}
|
|
>
|
|
<div class={cn("pb-4 pt-0", className)}>
|
|
{@render children?.()}
|
|
</div>
|
|
</AccordionPrimitive.Content>
|