mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-27 03:05:35 +02:00
working on the frontend
This commit is contained in:
16
web/src/lib/components/ui/card/card-description.svelte
Normal file
16
web/src/lib/components/ui/card/card-description.svelte
Normal file
@@ -0,0 +1,16 @@
|
||||
<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 {...restProps} bind:this={ref} class={cn("text-muted-foreground text-sm", className)}>
|
||||
{@render children?.()}
|
||||
</p>
|
||||
Reference in New Issue
Block a user