Add setting for font size

This commit is contained in:
Jon Staab
2025-05-13 14:31:34 -07:00
parent 60ec6924f3
commit 823058e335
5 changed files with 48 additions and 8 deletions
+14 -6
View File
@@ -3,20 +3,28 @@
interface Props {
label?: Snippet
secondary?: Snippet
input?: Snippet
info?: Snippet
[key: string]: any
}
const {label, input, info, ...props}: Props = $props()
const {label, secondary, input, info, ...props}: Props = $props()
</script>
<div class="flex flex-col gap-2 {props.class}">
{#if label}
<label class="flex items-center gap-2 font-bold">
{@render label()}
</label>
{/if}
<div class="flex items-center justify-between">
{#if label}
<label class="flex items-center gap-2 font-bold">
{@render label()}
</label>
{/if}
{#if secondary}
<label class="flex items-center gap-2">
{@render secondary()}
</label>
{/if}
</div>
{@render input?.()}
{#if info}
<p class="text-sm">