tiptap/packages/vue-3/src/NodeViewContent.ts
2023-07-07 15:32:25 +02:00

22 lines
339 B
TypeScript

import { defineComponent, h } from 'vue'
export const NodeViewContent = defineComponent({
name: 'NodeViewContent',
props: {
as: {
type: String,
default: 'div',
},
},
render() {
return h(this.as, {
style: {
whiteSpace: 'pre-wrap',
},
'data-node-view-content': '',
})
},
})