<script setup lang="ts">
import type { HTMLAttributes } from "vue";
import { defineProps } from "vue";
import BreadcrumbList from "./BreadcrumbList.vue";
import type { BreadcrumbItem } from "./props";

defineProps<{
  items?: BreadcrumbItem[];
  class?: HTMLAttributes["class"];
}>();
</script>

<template>
  <nav class="breadcrumb" aria-label="breadcrumb" :class="$props.class">
    <breadcrumb-list :items="$props.items"/>
  </nav>
</template>

<style scoped>
.breadcrumb {
  display: inline-flex;
}
</style>
