impr: restructure src/lib

This commit is contained in:
Xylight committed 2025-09-24 17:12:19 -07:00
1 parent d85b889409
commit 75f907743e
376 files changed
+1000 -1033

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
<script lang="ts">
import type { ClassValue } from 'svelte/elements'
import { Material } from '../index.js'
import { Icon, InformationCircle } from 'svelte-hero-icons'
interface Props {
content?: string | undefined
children?: import('svelte').Snippet
class?: ClassValue
}
let { content = undefined, children, class: clazz = '' }: Props = $props()
</script>
<Material
padding="none"
color="uniform"
class="flex flex-row space-x-2 items-center px-4 py-3 rounded-3xl! {clazz}"
>
<Icon
src={InformationCircle}
size="20"
mini
class="text-primary-900 dark:text-primary-100"
/>
<div class="flex flex-col md:flex-row items-center w-full">
{#if children}
{@render children?.()}
{:else if content}
<p>
{content}
</p>
{/if}
</div>
</Material>