Not the most beautiful example but I hope it works.

html: <button id="random" data-svelte-h="svelte-1pfskdc">Randomize</button> <button id="reset" data-svelte-h="svelte-hs2mgg">Reset</button> <button id="destroy" data-svelte-h="svelte-firc1e">Destroy</button> <div class="spu-ffeeeb"><div class="spu-1swoak"><button data-svelte-h="svelte-mx48ro">-</button> <input type="number" name="" id="" value="5"> <button data-svelte-h="svelte-m8qpv4">+</button></div> <div data-svelte-h="svelte-15753oy">X</div> <div><button data-svelte-h="svelte-1onrpal">-</button> <input type="number" name="" id="" value="10"> <button data-svelte-h="svelte-z3g1y1">+</button></div> <div data-svelte-h="svelte-ng5ugd">=</div> <div class="spu-7eh6cl">50</div></div> c: 20

code: .spu-ffeeeb{display:grid;grid-template-columns:10px 230px;align-items:baseline;grid-gap:5px;gap:5px}.spu-1swoak{grid-column:2/3}.spu-ffeeeb *{margin:0 !important;padding:0}.spu-7eh6cl{text-align:right}

map: null

head: <title>This is SSR component API</title><!-- HEAD_svelte-3lnckc_START --><meta name="description" content="This is something in the head tag"><!-- HEAD_svelte-3lnckc_END -->

<script>
	import { browser } from "$app/environment";
	import Component from "./Component.svelte";

	let code = Component.render(
		{
			// we can pass in props in the first argument
			a: 5,
			b: 10,
			title: "This is SSR component API",
		},
		// we can pass in context in the second argument
		{ context: new Map([["c", 20]]) }
	);
</script>

{#each Object.entries(code) as [key, value]}
	<div class="m-4 rounded bg-white p-4">
		{#if typeof value === "object"}
			{#each Object.entries(value) as [key, value]}
				<p>
					{key}: {value}
				</p>
			{/each}
		{:else}
			<p>
				{key}: {value}
			</p>
		{/if}
	</div>
{/each}

<style>
</style>
Because of no CSR you can't actually click the tabs so here is the component code! (mostly to see the svelte:head code)
X
=
1
c: undefined
<script>
	import { createEventDispatcher } from "svelte";
	import { getContext } from "svelte";
	import { fade } from "svelte/transition";

	const dispatch = createEventDispatcher();

	export let a = 1;
	export let b = 1;
  export let title;
	$: product = a * b;
	$: dispatch("product", { product, a, b });

	const c = getContext("c");

	export function reset() {
		a = 1;
		b = 1;
	}
</script>

<svelte:head>
  <title>{title}</title>
	<meta name="description" content="This is something in the head tag" />
</svelte:head>

<button id="random">Randomize</button>
<button id="reset">Reset</button>
<button id="destroy">Destroy</button>
<!--                                                               ? spicy selectors -->
<div
	transition:fade|global
	class="grid grid-cols-[10px_230px] items-baseline gap-[5px] [&_*]:!m-0 [&_*]:p-0">
	<div class="col-[2/3]">
		<button on:click={() => (a -= 5)}>-</button>
		<input type="number" name="" bind:value={a} id="" />
		<button on:click={() => (a += 5)}>+</button>
	</div>
	<div>X</div>
	<div>
		<button on:click={() => (b -= 5)}>-</button>
		<input type="number" name="" bind:value={b} id="" />
		<button on:click={() => (b += 5)}>+</button>
	</div>

	<div>=</div>
	<div class="text-right">{product}</div>
</div>

c: {c}

<style>
</style>

If this was a .js file we could also just use the rendered component code as our HTML and CSS.