A hierarchy of links to navigate through a website.
Simple example for GAvatar
<script setup lang="ts">
const items = [
{
text: 'alert',
to: '/components/alert',
},
{
text: 'avatar',
to: '/components/avatar',
},
{
text: 'end',
},
]
<script>
<template>
<GBreadcrumb :items="items" />
<template>
config for global setting , set on nuxt.config
glorious:{
components:{
breadcrumb:{
props:{
divider:'/',
}
}
}
}
Attention : icon is GIcon component so you should set svg file to assets folder read more about GIcon
interface breadcrumbInterface {
text: String
icon?: String
to?: String
}
Prop | Type | Default |
---|---|---|
items | Array | - |
divider | string | / |