2025-02-04 00:37:14 +00:00
|
|
|
<script lang="ts">
|
|
|
|
|
interface Props {
|
|
|
|
|
label?: import("svelte").Snippet
|
|
|
|
|
input?: import("svelte").Snippet
|
|
|
|
|
info?: import("svelte").Snippet
|
|
|
|
|
[key: string]: any
|
|
|
|
|
}
|
|
|
|
|
|
2025-02-04 01:21:46 +00:00
|
|
|
const {...props}: Props = $props()
|
2025-02-04 00:37:14 +00:00
|
|
|
</script>
|
|
|
|
|
|
2026-04-17 21:58:52 +00:00
|
|
|
<div class="flex flex-col gap-2 {props.class}">
|
|
|
|
|
<div class="flex items-center justify-between w-full gap-2">
|
|
|
|
|
{#if props.label}
|
2026-04-20 16:26:44 +00:00
|
|
|
<label class="flex items-center gap-2 min-w-[30%] max-w-[80%] md:max-w-none">
|
2026-04-17 21:58:52 +00:00
|
|
|
{@render props.label()}
|
|
|
|
|
</label>
|
2024-11-27 00:39:49 +00:00
|
|
|
{/if}
|
2026-04-20 16:26:44 +00:00
|
|
|
<div class="flex items-center gap-2 justify-end grow">
|
2026-04-17 21:58:52 +00:00
|
|
|
{#if props.input}
|
|
|
|
|
{@render props.input()}
|
|
|
|
|
{/if}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{#if props.info}
|
2026-06-24 20:56:53 +00:00
|
|
|
<p class="text-sm text-muted">
|
2026-04-17 21:58:52 +00:00
|
|
|
{@render props.info()}
|
|
|
|
|
</p>
|
|
|
|
|
{/if}
|
2024-10-17 22:21:22 +00:00
|
|
|
</div>
|