Skip to content

Commit

Permalink
Added support for the 'tag' prop on <mq-layout>
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Riley committed Oct 25, 2020
1 parent 0a33196 commit 4f56cd2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ export default {
required: true,
type: [String, Array],
},
tag: {
type: String,
default: 'div'
}
},
setup(props, context) {
const plusModifier = computed(
Expand All @@ -33,7 +37,7 @@ export default {
);
return () =>
shouldRenderChildren.value
? h("div", {}, context.slots.default())
? h(props.tag, {}, context.slots.default())
: h();
},
};

0 comments on commit 4f56cd2

Please sign in to comment.