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

johnandersen777.bsky.social/knotless

git that lives in your Atmosphere account

Forked from chadtmiller.com/knotless

0
0
11 lines · 456 B Raw History
<script lang="ts">
	import { date, moment } from '#lib/format.ts';
	import { zone } from '#lib/zone.svelte.ts';
	/**
	 * A moment, put in words by `show` (its date, unless told), and in full on
	 * hover; out of sight, keeping its place, until the viewer's zone is known.
	 */
	let { at, show = date }: { at: string; show?: (iso: string) => string } = $props();
</script>

<time datetime={at} title={moment(at)} class:zoneless={!zone.tz}>{show(at)}</time>