~james/core

core/web/src/lib/components/profile/StringCard.svelte -rw-r--r-- 562 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
<script lang="ts">
	import Card, { type CardVariants } from "#lib/components/ui/Card.svelte";
	import StringCardContent from "#lib/components/profile/StringCardContent.svelte";
	import type { StringCardData } from "#lib/components/profile/types.ts";

	let {
		entry,
		layout = "card",
		border = true,
		background = true
	}: {
		entry: StringCardData;
		layout?: "card" | "row";
		border?: CardVariants["border"];
		background?: CardVariants["background"];
	} = $props();
</script>

<Card {border} {background}>
	<StringCardContent {entry} {layout} />
</Card>