impr: merge mono-ui with photon (#455)

This commit is contained in:
Xylight authored and GitHub committed 2024-09-24 19:33:52 -07:00
1 parent 16075f72f2
commit 180d6fcc0d
40 files changed
+2024 -1

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
<script lang="ts">
let forID: string | undefined = undefined
export { forID as for }
/**
* The `text` prop will take precedence over the slot.
*/
export let text: string | undefined = undefined
</script>
<svelte:element
this={forID ? 'label' : 'span'}
{...$$restProps}
for={forID}
class="text-sm text-slate-800 dark:text-zinc-200 font-medium w-full {$$props.class || ''}"
>
{#if text}
{text}
{:else if $$slots.default}
<slot />
{/if}
</svelte:element>