@coreui/vue
Version:
UI Components Library for Vue.js
31 lines (27 loc) • 767 B
JavaScript
var vue = require('vue');
const CNavbarBrand = vue.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 () => vue.h(props.as ?? (props.href ? 'a' : 'span'), {
class: 'navbar-brand',
href: props.href,
}, slots.default && slots.default());
},
});
exports.CNavbarBrand = CNavbarBrand;
//# sourceMappingURL=CNavbarBrand.js.map
;