~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/hud

A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts

0
0
21 lines · 645 B Raw History
<script lang="ts">
	import type { Opener } from './open';
	import RichRuns from './RichRuns.svelte';
	import type { Run } from './richtext';

	// Bluesky richtext: a paragraph of runs, cut by the server into links,
	// mentions and tags.
	let { runs, onopenlink, onopenactor }: { runs: Run[]; onopenlink?: (url: string) => void; onopenactor?: (actor: string) => Opener } = $props();
</script>

<p class="plain"><RichRuns {runs} {onopenlink} {onopenactor} /></p>

<style>
	.plain {
		margin: 0;
		white-space: pre-wrap;
		overflow-wrap: anywhere;
		font-size: var(--font-text-md-size);
		line-height: var(--font-text-md-line-height);
	}
</style>