mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-22 16:17:50 +08:00
19 lines
365 B
TypeScript
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' }}
|
|
/>
|
|
)
|
|
}
|