PanelHeader.vue 630 B

12345678910111213141516171819202122
  1. <template>
  2. <div v-if="tag != '' || label != ''" class="flex h-9 items-center gap-2 border-y border-t-transparent bg-white/2.5 px-4 border-b-white/5 bg-white/1">
  3. <div v-if="tag != ''" class="dark flex">
  4. <DocsTag variant="small">{{ tag }}</DocsTag>
  5. </div>
  6. <span v-if="tag != '' && label != ''" class="h-0.5 w-0.5 rounded-full bg-zinc-500" />
  7. <span v-if="label != ''" class="font-mono text-xs text-zinc-400">{{ label }}</span>
  8. </div>
  9. </template>
  10. <script setup>
  11. const props = defineProps({
  12. tag: {
  13. default: ''
  14. },
  15. label: {
  16. default: ''
  17. }
  18. })
  19. </script>