Files
FlightsAPI/resources/js/Components/FlightsGoneBy/InlineBadge.vue
T
2026-04-28 22:16:21 +10:00

31 lines
660 B
Vue

<script setup lang="ts">
import {BadgeVariant} from "@/Types/types";
withDefaults(defineProps<{
variant?: BadgeVariant
type?: 'class' | 'difficulty'
}>(), {
type: 'class'
})
</script>
<template>
<span v-if="variant !== 'unspecified'" class="class-badge" :class="variant ? `${type}-${variant}-global` : 'class-economy-global'">
<slot />
</span>
</template>
<style scoped>
.class-badge {
display: inline-block;
font-family: 'Share Tech Mono', monospace;
font-size: 0.68rem;
letter-spacing: 0.1em;
padding: 0.18rem 0.55rem;
border-radius: 2px;
text-transform: uppercase;
cursor: pointer;
}
</style>