1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-12 22:30:15 +00:00
Files
pocket-id/frontend/src/lib/components/ui/card/card-description.svelte

21 lines
457 B
Svelte

<script lang="ts">
import type { HTMLAttributes } from 'svelte/elements';
import { cn, type WithElementRef } from '$lib/utils/style.js';
let {
ref = $bindable(null),
class: className,
children,
...restProps
}: WithElementRef<HTMLAttributes<HTMLParagraphElement>> = $props();
</script>
<p
bind:this={ref}
data-slot="card-description"
class={cn('text-muted-foreground text-sm mt-1', className)}
{...restProps}
>
{@render children?.()}
</p>