Add setting for font size
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user