tiptap/packages/react/src/NodeViewContent.tsx
2021-04-08 09:11:45 +02:00

19 lines
365 B
TypeScript

import React from 'react'
export interface NodeViewContentProps {
className?: string,
as?: React.ElementType,
}
export const NodeViewContent: React.FC<NodeViewContentProps> = props => {
const Tag = props.as || 'div'
return (
<Tag
className={props.className}
data-node-view-content=""
style={{ whiteSpace: 'pre-wrap' }}
/>
)
}