elk/components/common/RichContent.ts

12 lines
185 B
TypeScript

export default defineComponent({
props: {
content: {
type: String,
required: true,
},
},
setup(props) {
return () => contentToVNode(props.content)
},
})