~james/core

core/web/src/lib/components/ui/LayerCardSecondary.svelte -rw-r--r-- 617 bytes
452f17b7 — james chore(import): snapshot james.dad.town/core at f70c71c7696a 15 hours ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<script module lang="ts">
	import { tv } from "tailwind-variants";

	export const layerCardSecondary = tv({
		base: "flex min-w-0 items-center gap-xs px-md py-1 text-foreground-muted"
	});
</script>

<script lang="ts">
	import type { Snippet } from "svelte";
	import type { HTMLAttributes } from "svelte/elements";

	interface Props extends Omit<HTMLAttributes<HTMLDivElement>, "class" | "children"> {
		class?: string;
		children?: Snippet;
	}

	let { class: className, children, ...rest }: Props = $props();
</script>

<div class={layerCardSecondary({ class: className })} {...rest}>
	{@render children?.()}
</div>