@coreui/vue
Version:
UI Components Library for Vue.js
32 lines (29 loc) • 848 B
JavaScript
import { defineComponent, h } from 'vue';
const CFooter = defineComponent({
name: 'CFooter',
props: {
/**
* Component used for the root node. Either a string to use a HTML element or a component.
*/
as: {
type: String,
default: 'div',
},
/**
* Place footer in non-static positions.
*
* @values 'fixed', 'sticky'
*/
position: {
type: String,
validator: (value) => {
return ['fixed', 'sticky'].includes(value);
},
},
},
setup(props, { slots }) {
return () => h(props.as, { class: ['footer', { [`footer-${props.position}`]: props.position }] }, slots.default && slots.default());
},
});
export { CFooter };
//# sourceMappingURL=CFooter.js.map