Files
computer/cptr/frontend/src/lib/components/KeyPill.svelte
T
2026-06-06 11:24:55 +01:00

15 lines
498 B
Svelte

<script lang="ts">
interface Props {
/** The formatted shortcut text to display (e.g. "⌘N", "⌃`"). */
text: string;
/** Additional CSS classes (e.g. layout utilities from the parent). */
class?: string;
}
let { text, class: className = '' }: Props = $props();
</script>
<span
class="inline-flex items-center justify-center h-[18px] px-[5px] rounded-full text-[10px] font-medium leading-none bg-[#e8e8e8] text-[#555] dark:bg-[#1e1e1e] dark:text-[#999] {className}"
>{text}</span
>