Files
classroomio/packages/ui/src/custom/resource-list-row/resource-list-row-lead.svelte
T

21 lines
504 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="resource-list-row-lead"
class={cn('ui:flex ui:shrink-0 ui:items-center ui:justify-center ui:self-center', className)}
{...restProps}
>
{@render children?.()}
</div>