Files
gpx.studio/website/src/lib/components/ui/alert-dialog/alert-dialog-footer.svelte

24 lines
630 B
Svelte
Raw Normal View History

2024-07-15 13:19:56 +02:00
<script lang="ts">
2025-06-21 21:07:36 +02:00
import { cn, type WithElementRef } from "$lib/utils.js";
2024-07-15 13:19:56 +02:00
import type { HTMLAttributes } from "svelte/elements";
2025-06-08 16:32:41 +02:00
let {
ref = $bindable(null),
class: className,
children,
...restProps
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
2024-07-15 13:19:56 +02:00
</script>
<div
2025-06-08 16:32:41 +02:00
bind:this={ref}
2025-06-21 21:07:36 +02:00
data-slot="alert-dialog-footer"
2026-04-06 18:22:01 +02:00
class={cn(
"bg-muted/50 -mx-4 -mb-4 rounded-b-xl border-t p-4 flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",
className
)}
2025-06-08 16:32:41 +02:00
{...restProps}
2024-07-15 13:19:56 +02:00
>
2025-06-08 16:32:41 +02:00
{@render children?.()}
2024-07-15 13:19:56 +02:00
</div>