@coreui/vue-pro
Version:
UI Components Library for Vue.js
29 lines (26 loc) • 748 B
JavaScript
import { defineComponent, h } from 'vue';
const CNavbarBrand = defineComponent({
name: 'CNavbarBrand',
props: {
/**
* Component used for the root node. Either a string to use a HTML element or a component.
*
*/
as: {
type: String,
default: 'a',
},
/**
* The href attribute specifies the URL of the page the link goes to.
*/
href: String,
},
setup(props, { slots }) {
return () => h(props.as ?? (props.href ? 'a' : 'span'), {
class: 'navbar-brand',
href: props.href,
}, slots.default && slots.default());
},
});
export { CNavbarBrand };
//# sourceMappingURL=CNavbarBrand.js.map