vue-material-adapter
Version:
Vue 3 wrapper arround Material Components for the Web
25 lines (23 loc) • 428 B
JavaScript
import { h } from 'vue';
export default {
name: 'mcw-card-actions',
props: {
fullBleed: Boolean,
},
setup(props, { slots }) {
return () => {
return h(
'section',
{
class: [
{
'mdc-card__actions': 1,
'mdc-card__actions--full-bleed': props.fullBleed,
},
],
},
slots.default?.(),
);
};
},
};