chadtmiller.com/group-host
atmosphere group host
0
0
<script lang="ts">
import { scrollRow } from '#lib/rows.ts';
/**
* The parts of a page, each a page of its own, in a row: `current`, the
* address of the one shown. `label` names the row for a screen reader.
* Wider than the screen, the row scrolls sideways, the one shown in
* view, faded at an edge with more past it.
*/
let {
tabs,
current,
label
}: { tabs: { href: string; text: string }[]; current: string; label: string } = $props();
</script>
<nav class="tabs" aria-label={label} {@attach scrollRow(current)}>
{#each tabs as t (t.href)}<a href={t.href} aria-current={t.href === current ? 'page' : undefined}
>{t.text}</a
>{/each}
</nav>