Files
photon-tbw/src/routes/settings/Setting.svelte
T
2024-03-24 15:33:14 -07:00

20 lines
546 B
Svelte

<div
class="flex flex-row items-center w-full justify-between gap-4 max-w-full {$$props.mainClass}"
>
<div class="flex flex-col gap-0.5 flex-1 {$$props.class}">
<h1 class="font-medium text-base"><slot name="title" /></h1>
{#if $$slots.description}
<p class="text-slate-800 dark:text-zinc-200 text-sm">
<slot name="description" />
</p>
{/if}
</div>
{#if $$slots.default}
<div
class="w-full flex flex-col gap-2 flex-1 items-end {$$props.optionClass}"
>
<slot />
</div>
{/if}
</div>