mirror of
https://github.com/BradNut/musicle-svelte
synced 2025-09-08 17:40:21 +00:00
17 lines
439 B
Svelte
17 lines
439 B
Svelte
|
|
<script lang="ts">
|
||
|
|
import type { WithElementRef } from "bits-ui";
|
||
|
|
import type { HTMLAttributes } from "svelte/elements";
|
||
|
|
import { cn } from "$lib/utils.js";
|
||
|
|
|
||
|
|
let {
|
||
|
|
ref = $bindable(null),
|
||
|
|
class: className,
|
||
|
|
children,
|
||
|
|
...restProps
|
||
|
|
}: WithElementRef<HTMLAttributes<HTMLParagraphElement>> = $props();
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<p bind:this={ref} class={cn("text-muted-foreground text-sm", className)} {...restProps}>
|
||
|
|
{@render children?.()}
|
||
|
|
</p>
|