@coreui/vue
Version:
UI Components Library for Vue.js
28 lines (24 loc) • 741 B
JavaScript
var vue = require('vue');
const CSidebarBrand = vue.defineComponent({
name: 'CSidebarBrand',
props: {
/**
* Component used for the root node. Either a string to use a HTML element or a component.
*
*/
as: {
type: String,
default: 'div',
},
/**
* 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' : 'div'), { class: 'sidebar-brand', href: props.href }, slots.default && slots.default());
},
});
exports.CSidebarBrand = CSidebarBrand;
//# sourceMappingURL=CSidebarBrand.js.map
;