vue-material-adapter
Version:
Vue 3 wrapper arround Material Components for the Web
26 lines (23 loc) • 373 B
JavaScript
import { h } from 'vue';
export default {
name: 'mcw-dialog-content',
props: {
tag: {
type: String,
default() {
return 'div';
},
},
},
setup(props, { slots }) {
return () => {
return h(
props.tag,
{
class: ['mdc-dialog__content'],
},
slots.default?.(),
);
};
},
};