Files
nodarium/packages/ui/src/lib/ShortCut.svelte
Max Richter 4db1cc7d4f
All checks were successful
Deploy to GitHub Pages / build_site (push) Successful in 2m21s
feat: add path_geometry data
2024-04-24 19:11:00 +02:00

36 lines
545 B
Svelte

<script lang="ts">
export let ctrl = false;
export let shift = false;
export let alt = false;
export let key: string;
</script>
<div class="command">
{#if ctrl}
<span>Ctrl</span>
{/if}
{#if shift}
<span>Shift</span>
{/if}
{#if alt}
<span>Alt</span>
{/if}
{key}
</div>
<style>
.command {
background: var(--layer-2);
padding: 0.4em;
font-size: 0.8em;
border-radius: 0.3em;
white-space: nowrap;
width: fit-content;
}
span::after {
content: " +";
opacity: 0.5;
}
</style>