@coreui/vue
Version:
UI Components Library for Vue.js
32 lines (29 loc) • 849 B
JavaScript
import { defineComponent, h } from 'vue';
const CBreadcrumbItem = defineComponent({
name: 'CBreadcrumbItem',
props: {
/**
* Toggle the active state for the component.
*/
active: Boolean,
/**
* The `href` attribute for the inner link component.
*/
href: String,
},
setup(props, { slots }) {
return () => h('li', {
class: [
'breadcrumb-item',
{
active: props.active,
},
],
...(props.active && { 'aria-current': 'page' }),
}, props.href
? h('a', { href: props.href }, slots.default && slots.default())
: slots.default && slots.default());
},
});
export { CBreadcrumbItem };
//# sourceMappingURL=CBreadcrumbItem.js.map