Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 64x 64x 64x | <template>
<component
:is="to ? NuxtLink : 'span'"
:to
:title="hint"
class="shrink-0 rounded-sm border border-current px-1.5 py-0.5 text-xs font-medium"
:class="colorClass"
>
{{ label }}
</component>
</template>
<script setup lang="ts">
import { NuxtLink } from "#components";
import type { Tone } from "../types/Tone.ts";
interface Props {
label: string;
tone?: Tone;
to?: string;
hint?: string;
}
const { label, tone = "neutral", to, hint } = defineProps<Props>();
const colorClass = computed(() => toneClass(tone) || "text-dimmed");
</script>
|