Files
classroomio/packages/ui/src/base/card/card-footer.svelte
T

21 lines
476 B
Svelte
Raw Normal View History

<script lang="ts">
import { cn, type WithElementRef } from '../../tools';
import type { HTMLAttributes } from 'svelte/elements';
let {
ref = $bindable(null),
class: className,
children,
...restProps
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
</script>
<div
bind:this={ref}
data-slot="card-footer"
class={cn('ui:[.border-t]:pt-6 ui:flex ui:items-center ui:px-6', className)}
{...restProps}
>
{@render children?.()}
</div>