chadtmiller.com/hud
A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts
place.hud.hudkit 0.3.1 Latest 5 packages
0
0
<script lang="ts">
import { ICONS } from './icons';
// A cover's mark while covers are picked: an empty ring in its corner,
// filled in the accent with a check once it is picked. Its state is
// said by what holds it (`aria-pressed`).
let { picked }: { picked: boolean } = $props();
</script>
<span class="mark" class:picked aria-hidden="true"
>{#if picked}<svg viewBox="0 0 24 24">{#each ICONS.check as d (d)}<path {d} />{/each}</svg>{/if}</span
>
<style>
.mark {
position: absolute;
top: var(--hud-space-2);
left: var(--hud-space-2);
display: grid;
place-items: center;
width: 1.375rem;
height: 1.375rem;
box-sizing: border-box;
border: 2px solid var(--hud-tint-glyph);
border-radius: var(--border-radius-full);
background: var(--hud-scrim);
color: var(--color-background-primary);
filter: drop-shadow(0 0 2px rgb(0 0 0 / 0.4));
pointer-events: none;
}
.mark.picked {
border-color: var(--color-background-primary);
background: var(--color-text-info);
}
svg {
width: 0.875rem;
height: 0.875rem;
fill: none;
stroke: currentColor;
stroke-width: 3;
stroke-linecap: round;
stroke-linejoin: round;
}
</style>