@tiptap/vue-3
Version:
Vue components for tiptap
22 lines (18 loc) • 339 B
text/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': '',
})
},
})