aboutsummaryrefslogtreecommitdiff
path: root/packages/client/src/components/BaseBreadcrumb.vue
diff options
context:
space:
mode:
Diffstat (limited to 'packages/client/src/components/BaseBreadcrumb.vue')
-rw-r--r--packages/client/src/components/BaseBreadcrumb.vue39
1 files changed, 39 insertions, 0 deletions
diff --git a/packages/client/src/components/BaseBreadcrumb.vue b/packages/client/src/components/BaseBreadcrumb.vue
new file mode 100644
index 0000000..91c0109
--- /dev/null
+++ b/packages/client/src/components/BaseBreadcrumb.vue
@@ -0,0 +1,39 @@
+<template>
+ <nav aria-label="breadcrumb">
+ <ol class="breadcrumb">
+ <li
+ v-for="(item, index) in items" class="breadcrumb-item"
+ :key="index">
+ <router-link :to="item.path">
+ {{ item.name }}
+ </router-link>
+ </li>
+ <li class="breadcrumb-item active" aria-current="page">
+ {{ activeItem }}
+ </li>
+ </ol>
+ </nav>
+</template>
+
+<script>
+export default {
+ name: "BaseBreadcrumb",
+ props: {
+ items: {
+ type: Array,
+ required: true
+ },
+ activeItem: {
+ type: String,
+ required: true
+ }
+ }
+};
+</script>
+
+<style lang="scss" scoped>
+@use "../scss/colors";
+@import "../scss/bootstrap";
+
+@import "~bootstrap/scss/breadcrumb";
+</style>